[wp-trac] [WordPress Trac] #16432: Hexadecimal entity support within ent2ncr

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 1 13:21:06 UTC 2011


#16432: Hexadecimal entity support within ent2ncr
-------------------------+-----------------------------
 Reporter:  GaryJ        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.1
 Severity:  minor        |   Keywords:  has-patch
-------------------------+-----------------------------
 There's been several tickets regarding the use of hexadecimal numerical
 entities instead of decimal numerical entities - it's part of a W3C
 standard that [http://www.w3.org/TR/charmod/#C048 Content SHOULD use the
 hexadecimal form of character escapes rather than the decimal form when
 there are both].

 This patch adds hexadecimal entity support to `ent2ncr()` for the existing
 named entities. It adds an optional second argument, and defaults to
 returning the decimal entities so is fully backwards compatible.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16432>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list