QuoteHTML
This subroutine will take in text, and return it with angled brackets and ampersands replaced by their HTML equivalent (>, <, &)
QuoteHTML(Text)
Text - The text you want to sanitize.
These are actual examples from the Aneuch source code:
$next = QuoteHTML($next);
This call insures that the above mentioned elements are escaped in the text found in the variable $next.