note 33063 modified in function.htmlspecialchars by vincent
| From: | vincent@php.net | Date: | Tue, 12 Aug 2003 21:24:36 +0000 |
| Subject: | note 33063 modified in function.htmlspecialchars by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54036@lists.php.net to get a copy of this message | ||
most simple function for decoding html-encoded strings:
function htmldecode($encoded) {
return strtr($encoded,array_flip(get_html_translation_table(HTML_ENTITIES)));
}
--was--
most simple function for decoding html-encoded strings:
function htmldecode($encoded) {
return strstr($encoded,array_flip(get_html_translation_table(HTML_ENTITIES)));
}
http://www.php.net/manual/en/function.htmlspecialchars.php