[wp-trac] [WordPress Trac] #25485: Why does esc_attr not double encode entities by default?

WordPress Trac noreply at wordpress.org
Wed Mar 26 17:11:05 UTC 2014


#25485: Why does esc_attr not double encode entities by default?
--------------------------+----------------------
 Reporter:  smerriman     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Formatting    |     Version:  3.6.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------

Comment (by nacin):

 Also note that esc_textarea() needs to be double-encoded because of how
 textareas work. That's by design.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25485#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list