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

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 9 21:13:22 UTC 2010


#12178: esc_html() doesn't encode '&' characters
--------------------------+-------------------------------------------------
 Reporter:  scribu        |        Owner:            
     Type:  defect (bug)  |       Status:  closed    
 Priority:  normal        |    Milestone:  Unassigned
Component:  Formatting    |      Version:  3.0       
 Severity:  normal        |   Resolution:  invalid   
 Keywords:  2nd-opinion   |  
--------------------------+-------------------------------------------------
Changes (by azaozz):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 You mean it doesn't double-encode it? This is by design, if something
 needs double-encoding use `htmlspecialchars`.

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


More information about the wp-trac mailing list