Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: how to force HTML to display as text

by chipmunk (Parson)
on Jan 25, 2002 at 08:07 UTC ( #141422=note: print w/ replies, xml ) Need Help??


in reply to how to force HTML to display as text

A quick way to embed literal HTML inside an HTML document is with an xmp tag. I would have put an actual example here, but apparently PerlMonks doesn't like the xmp tag. Here's how you would use it:

<xmp> HTML list example: <ul> <li>Thing One</li> <li>Thing Two</li> </ul> </xmp>

Of course, if the literal HTML contains an XMP tag, you've got problems. Encoding the angle brackets and ampersands is the most robust solution.


Comment on Re: how to force HTML to display as text
Download Code
Replies are listed 'Best First'.
Re: Re: how to force HTML to display as text
by Summers_Azin_pr0n (Initiate) on Feb 02, 2002 at 01:11 UTC
    yes thank you all for your very insightfull responces but why the hell did my post get down voted? why not up?! comon I got 5 exp!!! I used to have 10! I WANT TO VOTE!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2015-07-08 05:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls