SPUG:escaping HTML

Adam Monsen adamm at wazamatta.com
Sat May 10 23:10:54 CDT 2003

Fred Morris wrote:
> What are people's recommendations for escaping HTML without importing the
> kitchen sink? It's not hard to do it yourself.

$ perl -ne 's/</&lt;/g; s/>/&gt;/g' < index.html > outdex.html

> There are about a bajillion HTML:: modules, I'm sure there are more than
> several ways to do this.
> --
> Fred Morris
> m3047 at inwa.net

More information about the spug-list mailing list