note 34943 added to function.htmlspecialchars
| From: | matt at rack1 dot php dot net | Date: | Tue, 12 Aug 2003 21:11:46 +0000 |
| Subject: | note 34943 added to function.htmlspecialchars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-54035@lists.php.net to get a copy of this message | ||
The previous post has a typo. It should be "strtr" not "strstr":
function html_decode($encoded) {
return strtr($encoded,array_flip(get_html_translation_table(HTML_ENTITIES)));
}
----
Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34943
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34943&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34943&report=yes