note 68962 added to function.htmlspecialchars-decode
| From: | php-general at lists dot php dot net | Date: | Thu, 17 Aug 2006 12:49:12 +0000 |
| Subject: | note 68962 added to function.htmlspecialchars-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116006@lists.php.net to get a copy of this message | ||
This should be the best way to do it.
(Reposted because the other one seems a bit slower and because those who used the code under called
it htmlspecialchars_decode_php4)
<?php
if ( !function_exists('htmlspecialchars_decode') )
{
function htmlspecialchars_decode($text)
{
return strtr($text, array_flip(get_html_translation_table(HTML_SPECIALCHARS)));
}
}
?>
----
Server IP: 83.137.200.2
Probable Submitter: 85.167.177.99
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars-decode.php
Edit -- https://master.php.net/note/edit/68962
Del: integrated -- https://master.php.net/note/delete/68962/integrated
Del: useless -- https://master.php.net/note/delete/68962/useless
Del: bad code -- https://master.php.net/note/delete/68962/bad+code
Del: spam -- https://master.php.net/note/delete/68962/spam
Del: non-english -- https://master.php.net/note/delete/68962/non-english
Del: in docs -- https://master.php.net/note/delete/68962/in+docs
Del: other reasons-- https://master.php.net/note/delete/68962
Reject -- https://master.php.net/note/reject/68962
Search -- https://master.php.net/manage/user-notes.php