[San-Diego-pm] Displaying tags instead of executing them

Joel Fentin joel at fentin.com
Thu Oct 14 14:53:48 CDT 2004


Chris Radcliff wrote:

> The simplest (if not most correct) thing to do is replace all 
> occurrences of < with &lt;, like so:
> 
> $line =~ s/</&lt;/s;
> 
> That will make all the HTML tags inactive but still render them correctly.

Thank you Chris. That and &gt; did the trick.

-- 
Joel Fentin    tel: 760-749-8863    FAX: 760-749-8864
Contact me:    http://fentin.com/me/ContactMe.html
Biz:           http://fentin.com
Personal:      http://fentin.com/me/



More information about the San-Diego-pm mailing list