Mega Code Archive
Escaping Special Characters
replace > and >> and >>> ";
print "Original text was: '" . $html . "'\n";
$html = strrev( $html );
$newhtml = preg_replace( "/>(?![^><]+?\/?<)/", ";tl&", $html );
$newhtml = strrev( $newhtml );
print "New text is: '" . $newhtml . "'\n";
?>