[wp-trac] [WordPress Trac] #17409: Entity & in menu title breaks XHTML 1.0 Strict validation

WordPress Trac noreply at wordpress.org
Fri Feb 21 18:11:27 UTC 2014


#17409: Entity & in menu title breaks XHTML 1.0 Strict validation
--------------------------+------------------------------
 Reporter:  Florat        |       Owner:  Florian
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  3.1.2
 Severity:  normal        |  Resolution:  invalid
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by Steve_p):

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


Comment:

 Thanks for the report and sorry for taking so long to get back to you.
 This does not seem to be a bug.  When using $menu_item->menu_title
 directly, you need to use esc_html() to encode HTML entities correctly.

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


More information about the wp-trac mailing list