note 117876 added to function.html-entity-decode

From: Date: Tue, 25 Aug 2015 08:06:39 +0000
Subject: note 117876 added to function.html-entity-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-203464@lists.php.net to get a copy of this message
Use the following to decode all entities: <?php html_entity_decode($string, ENT_QUOTES | ENT_XML1, 'UTF-8') ?> I've checked these special entities: - double quotes (&#34;) - single quotes (&#39; and &apos;) - non printable chars (e.g. &#13;) With other $flags some or all won't be decoded. It seems that ENT_XML1 and ENT_XHTML are identical when decoding. ---- Server IP: 84.234.75.250 Probable Submitter: 5.10.182.138 ---- Manual Page -- http://php.net/manual/en/function.html-entity-decode.php Edit -- https://master.php.net/note/edit/117876 Del: integrated -- https://master.php.net/note/delete/117876/integrated Del: useless -- https://master.php.net/note/delete/117876/useless Del: bad code -- https://master.php.net/note/delete/117876/bad+code Del: spam -- https://master.php.net/note/delete/117876/spam Del: non-english -- https://master.php.net/note/delete/117876/non-english Del: in docs -- https://master.php.net/note/delete/117876/in+docs Del: other reasons-- https://master.php.net/note/delete/117876 Reject -- https://master.php.net/note/reject/117876 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203464) next »