note 78665 deleted from function.html-entity-decode by danbrown
| From: | danbrown@php.net | Date: | Tue, 10 Jan 2012 20:12:16 +0000 |
| Subject: | note 78665 deleted from function.html-entity-decode by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185529@lists.php.net to get a copy of this message | ||
Note Submitter: Matt Robinson
----
Bafflingly, html_entity_decode() only converts the 100 most common named entities, whereas the HTML
4.01 Recommendation lists over 250. This wrapper function converts all known named entities to
numeric ones before handing over to the original html_entity_decode, and hopefully isn't too
insufferably slow (am I right in thinking that making the conversion table static will prevent it
being reinitialised on each call?)
Unfortunately it's just a little too long for this documentation. You can see the code at http://www.lazycat.org/software/html_entity_decode_full.phps