Mega Code Archive
Categories
/
Php
/
Strings
Quote escaping in backreference replacements
<b> It's bold </b>"; print preg_replace('@
(.*?)
@e',"html_entity_decode('$1')", $html); print "\n"; $html = '
<i> "This" is italic. </i>
'; print preg_replace('@
(.*?)
@e',"html_entity_decode('$1')", $html); print "\n"; ?>