note 78172 added to function.html-entity-decode

From: Date: Mon, 01 Oct 2007 22:15:18 +0000
Subject: note 78172 added to function.html-entity-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-130970@lists.php.net to get a copy of this message
To go further with Fabian's comment: The XML specification (production 66) says that (decimal) numeric character references start with '&#', followed by one or more digits [0-9], and end with a ';' - just as the documented regular expression states. Hex references start with "&#x" and the allowed digits are [0-9a-fA-F]. And indeed, ' is a legitimate reference for an apostrophe (but don't tell Internet Explorer). So Fabien's alteration to the expression is necessary. It's still insufficient, however, as chr() does not handle multibyte characters such as "€". ---- Server IP: 202.89.58.1 Probable Submitter: 60.234.168.92 ---- Manual Page -- http://www.php.net/manual/en/function.html-entity-decode.php Edit -- https://master.php.net/note/edit/78172 Del: integrated -- https://master.php.net/note/delete/78172/integrated Del: useless -- https://master.php.net/note/delete/78172/useless Del: bad code -- https://master.php.net/note/delete/78172/bad+code Del: spam -- https://master.php.net/note/delete/78172/spam Del: non-english -- https://master.php.net/note/delete/78172/non-english Del: in docs -- https://master.php.net/note/delete/78172/in+docs Del: other reasons-- https://master.php.net/note/delete/78172 Reject -- https://master.php.net/note/reject/78172 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130970) next »