Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Scalar string to web page

by bmann (Priest)
on Jun 27, 2005 at 01:38 UTC ( [id://470127]=note: print w/replies, xml ) Need Help??


in reply to Scalar string to web page

If you mean having the text displayed as entered (including >, <, & and so forth), have a look at HTML::Entities encode_entities function.

Update:

use HTML::Entities; print encode_entities '<a href="#">linky</a>'; __END__ Output: &lt;a href=&quot;#&quot;&gt;linky&lt;/a&gt;

Log In?
Username:
Password:

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

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

    No recent polls found