Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

RE: Re: html

by perlmonkey (Hermit)
on May 23, 2000 at 09:22 UTC ( [id://14343]=note: print w/replies, xml ) Need Help??


in reply to Re: html
in thread printing html entities

The second part is not correct. <PRE></PRE> will still interpret the <iostream.h>

Use a <XMP> block or since this is permonks:
$code =~ s/>/&gt;/g; $code =~ s/</&lt;/g;

Replies are listed 'Best First'.
RE: RE: Re: html
by merlyn (Sage) on May 23, 2000 at 19:28 UTC
    Or, just use HTML::Entities from the LWP library. You do have that installed, don't you?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found