Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- keeping HTML source in a form


rocknbil - 3:25 pm on Jun 4, 2008 (gmt 0)


I do this by programming.

Substitute when it comes out

$texfield =~ s/</\&lt\;/ig;
$texfield =~ s/>/\&gt\;/ig;

and convert it back when it goes in:

$texfield =~ s/\&lt\;/</ig;
$texfield =~ s/\&gt\;/>/ig;

So that when it's called from a "public" page, it displays as expected, yet doesn't screw up the form when you edit it.


Thread source:: http://www.webmasterworld.com/html/3666748.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com