Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: how to force HTML to display as text

by JayBonci (Curate)
on Jan 24, 2002 at 15:45 UTC ( #141191=note: print w/replies, xml ) Need Help??


in reply to how to force HTML to display as text

Alternatively, if you want the entire webpage to not escape out your html, you can begin your CGI or mod_perl web page script with:
print "Content-type: text/plain\n\n";
This will fool your browser into thinking it opened a text file instead of an HTML file on your sever. I'm not sure if you wanted it elsewhere in another HTML page, but going through the trouble of unescaping it would be silly if you could merely do a little MIME magic, and have it all work out... this of course depends on your intended use of aforementioned file. Good luck!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2022-01-17 05:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (51 votes). Check out past polls.

    Notices?