Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to convert <,&,>,",' into XML &lt;,&amp;,&gt;,&quot ..

by ikegami (Patriarch)
on Dec 16, 2008 at 20:20 UTC ( [id://730728]=note: print w/replies, xml ) Need Help??


in reply to How to convert <,&,>,",' into XML &lt;,&amp;,&gt;,&quot ..

encode_entities($input, q{<>&"'}) from HTML::Entities will do the trick.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://730728]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found