[wp-trac] [WordPress Trac] #12178: esc_html() doesn't encode '&' characters

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 8 21:26:46 UTC 2010


#12178: esc_html() doesn't encode '&' characters
--------------------------+-------------------------------------------------
 Reporter:  scribu        |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  Unassigned 
Component:  General       |     Version:  3.0        
 Severity:  normal        |    Keywords:  2nd-opinion
--------------------------+-------------------------------------------------
 {{{
 var_dump(htmlspecialchars('«'));  // string(11) "«"
 var_dump(esc_html('«'));          // string(7) "«"
 }}}

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


More information about the wp-trac mailing list