note 76732 added to function.htmlspecialchars-decode
| From: | Wout at osu1 dot php dot net | Date: | Sat, 28 Jul 2007 16:06:46 +0000 |
| Subject: | note 76732 added to function.htmlspecialchars-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129000@lists.php.net to get a copy of this message | ||
The following replacement for PHP 4 is a little more complete, as the quote_style is taken into
account as well:
if (!function_exists("htmlspecialchars_decode")) {
function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT) {
return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS,
$quote_style)));
}
}
----
Server IP: 194.109.193.76
Probable Submitter: 130.89.164.10
----
Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars-decode.php
Edit -- https://master.php.net/note/edit/76732
Del: integrated -- https://master.php.net/note/delete/76732/integrated
Del: useless -- https://master.php.net/note/delete/76732/useless
Del: bad code -- https://master.php.net/note/delete/76732/bad+code
Del: spam -- https://master.php.net/note/delete/76732/spam
Del: non-english -- https://master.php.net/note/delete/76732/non-english
Del: in docs -- https://master.php.net/note/delete/76732/in+docs
Del: other reasons-- https://master.php.net/note/delete/76732
Reject -- https://master.php.net/note/reject/76732
Search -- https://master.php.net/manage/user-notes.php