note 119690 added to function.html-entity-decode

From: Date: Wed, 03 Aug 2016 22:46:23 +0000
Subject: note 119690 added to function.html-entity-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-206204@lists.php.net to get a copy of this message
Beware, there seem to be quite a few entities that are incorrect in the table. As of 7.0.2 "´" erroneously returns the symbol for "Â". It should be a back tick ´, but it's returning a fancy Â. html_entity_decode( "´", ENT_COMPAT, 'UTF-8' ); Might be better to use str_replace with a correct table. Pretty easy to make one from this: http://migo.sixbit.org/more/html-entities.html ---- Server IP: 72.52.91.14 Probable Submitter: 174.25.114.190 ---- Manual Page -- http://php.net/manual/en/function.html-entity-decode.php Edit -- https://master.php.net/note/edit/119690 Del: integrated -- https://master.php.net/note/delete/119690/integrated Del: useless -- https://master.php.net/note/delete/119690/useless Del: bad code -- https://master.php.net/note/delete/119690/bad+code Del: spam -- https://master.php.net/note/delete/119690/spam Del: non-english -- https://master.php.net/note/delete/119690/non-english Del: in docs -- https://master.php.net/note/delete/119690/in+docs Del: other reasons-- https://master.php.net/note/delete/119690 Reject -- https://master.php.net/note/reject/119690 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206204) next »