Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Encoding HTML

by kryten (Scribe)
on Apr 14, 2000 at 13:01 UTC ( [id://7606]=CUFP: print w/replies, xml ) Need Help??

If you want to display some text that may contain html or html looking elements as part of a webpage, you can use the HTML::Entities module to easily encode and decode it for you.
use HTML::Entities; my $encoded = encode_entities($html); my $html = decode_entities( $encoded );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found