@', '', str_replace('\\\"', '\"', \$text));
// Undo the escaping in the prepare step
\$text = decode_entities(\$text);
// Trim leading and trailing linebreaks
\$text = trim(\$text, \"\\r\\n\");
// Highlight as PHP
return '
'. highlight_string(\"\", 1) .'
';
}
?>
but I really want to find the code filter that's on php.net ?>";
note_display(trim($note));
function note_display($text)
{
ob_start();
highlight_string($text);
$highlighted = ob_get_contents();
ob_end_clean();
$highlighted = '' . str_replace(
array(
' ',
'
',
'',
"\n ",
' '
),
array(
' ',
"
\n",
'',
"\n ",
' '
),
$highlighted
) . '
';
echo <<
{$highlighted}
USER_NOTE_TEXT;
}
?>