txt2html

By Hal Canary, 2006-09-11 15:44:34 (link)
#computers-code

#!/bin/sed -f
#DTPD#
#txt2html Cleans up HTML control characters <.",&,>
s/\&/\&amp;/g;
s/\"/\&quot;/g;
s/</\&lt;/g;
s/>/\&gt;/g;
s/\\/\&\#0092;/g;

(back)