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

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 1 13:35:15 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        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by GaryJ):

 If there's a better performing way to pull out the entities from the
 `$to_ncr` array that having to loop through and pull them into a new array
 first, then please let me know!

 I thought about creating two arrays (`$to_ncr` and `$to_hncr`), but then
 figured the sets of named entities may get out of sync. If there's not
 much change in this function it may be fine to do that.

 Alternatively, an `ent2hncr()` function may be better, which `ent2ncr`
 defers to if the 2nd argument is correctly set?

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


More information about the wp-trac mailing list