http://qs321.pair.com?node_id=141191


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!