I have this which is near
// -------------------------------------------------------------
// If HTML is off then we need to get rid of < and > in the body
if ( ($convert != "html") && ($convert !="both") ) {
$PrintBody = str_replace("<","<",$PrintBody);
$PrintBody = str_replace(">",">",$PrintBody);
}
else {
// No server side includes
$PrintBody = preg_replace("/<!--(.|\n)*-->/","",$PrintBody);
}