[wp-trac] [WordPress Trac] #56531: Aiming to “kill” entities, `sanitize_title_with_dashes()` happens to eat content

WordPress Trac noreply at wordpress.org
Thu Sep 8 00:36:08 UTC 2022


#56531: Aiming to “kill” entities, `sanitize_title_with_dashes()` happens to eat
content
-------------------------------------------------+-------------------------
 Reporter:  anrghg                               |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Formatting                           |     Version:
 Severity:  major                                |  Resolution:
 Keywords:  needs-dev-note needs-patch changes-  |     Focuses:
  requested                                      |
-------------------------------------------------+-------------------------

Comment (by anrghg):

 Please disregard the suggested `preg_replace()` and read this instead:
 {{{#!php
 <?php
 $title = htmlspecialchars( $title, ENT_NOQUOTES );
 }}}

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


More information about the wp-trac mailing list