[wp-trac] [WordPress Trac] #32556: Clarify behaviour of esc_attr() with respect to HTML entities

WordPress Trac noreply at wordpress.org
Wed Jun 3 03:38:46 UTC 2015


#32556: Clarify behaviour of esc_attr() with respect to HTML entities
--------------------------+----------------------
 Reporter:  leewillis77   |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Formatting    |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------

Comment (by miqrogroove):

 Replying to [ticket:32556 leewillis77]:
 > It's possibly to just use htmlentities(), and not use esc_attr() at all

 Just to clarify, it's htmlspecialchars().  If you need help with this,
 please see the support forums.

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


More information about the wp-trac mailing list