note 77075 added to function.preg-replace
| From: | pcabc at chello dot hu | Date: | Tue, 14 Aug 2007 00:50:07 +0000 |
| Subject: | note 77075 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129461@lists.php.net to get a copy of this message | ||
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 "...
----
Server IP: 69.147.83.197
Probable Submitter: 89.133.18.137
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- https://master.php.net/note/edit/77075
Del: integrated -- https://master.php.net/note/delete/77075/integrated
Del: useless -- https://master.php.net/note/delete/77075/useless
Del: bad code -- https://master.php.net/note/delete/77075/bad+code
Del: spam -- https://master.php.net/note/delete/77075/spam
Del: non-english -- https://master.php.net/note/delete/77075/non-english
Del: in docs -- https://master.php.net/note/delete/77075/in+docs
Del: other reasons-- https://master.php.net/note/delete/77075
Reject -- https://master.php.net/note/reject/77075
Search -- https://master.php.net/manage/user-notes.php