Are there any scripts that can convert between text (e.g. <hi>) and the html entities version (&lt;hi&gt;) like this website does? Or at least a PHP file?
How to convert to HTML code?
command line;character encoding;conversion;html
The perl CGI module has a escapeHTML function that makes it pretty easy:perl -e 'use CGI qw(escapeHTML); print escapeHTML(<hi>\n);'Or to do an entire file:perl -p -e 'BEGIN { use CGI qw(escapeHTML); } $_ = escapeHTML($_);'  FILENAME