note 77075 deleted from function.preg-replace by felipe
| From: | felipe@php.net | Date: | Sun, 23 Mar 2008 23:01:11 +0000 |
| Subject: | note 77075 deleted from function.preg-replace by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137406@lists.php.net to get a copy of this message | ||
Note Submitter: pcabc at chello dot hu
----
if (!function_exists('htmlspecialchars_decode')) {
function htmlspecialchars_decode($str)
{
$str = preg_replace('/\\\"/', '"', $str);
return strtr($str, array_flip(get_html_translation_table(HTML_SPECIALCHARS)));
}
}
a little correcting, change back the \" string to "...