note 78665 added to function.html-entity-decode

From: Date: Mon, 22 Oct 2007 18:11:58 +0000
Subject: note 78665 added to function.html-entity-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-131631@lists.php.net to get a copy of this message
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 ---- Server IP: 87.124.64.96 Probable Submitter: 89.105.103.50 ---- Manual Page -- http://www.php.net/manual/en/function.html-entity-decode.php Edit -- https://master.php.net/note/edit/78665 Del: integrated -- https://master.php.net/note/delete/78665/integrated Del: useless -- https://master.php.net/note/delete/78665/useless Del: bad code -- https://master.php.net/note/delete/78665/bad+code Del: spam -- https://master.php.net/note/delete/78665/spam Del: non-english -- https://master.php.net/note/delete/78665/non-english Del: in docs -- https://master.php.net/note/delete/78665/in+docs Del: other reasons-- https://master.php.net/note/delete/78665 Reject -- https://master.php.net/note/reject/78665 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131631) next »