Perl Subroutines
Convert html or xml for use on web page
Rather ugly description, but this code replaces < and > with < and > and encloses
it all in some <pre>...</pre> tags. It is called as an ssi with a parameter
of the file to display. The file name is sanitised to prevent directory traversal.
Best just to see what it does. The code below was passed through convert2html.pl to
convert to a form suitable for display without the browser trying to interpret <'s and >'s.
[an error occurred while processing this directive]