[wp-trac] [WordPress Trac] #63426: wptexturize breaks markup

WordPress Trac noreply at wordpress.org
Fri May 9 18:42:17 UTC 2025


#63426: wptexturize breaks markup
--------------------------+-----------------------------
 Reporter:  madhazelnut   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.6.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If `wptexturize` is fed the following [valid](https://validator.w3.org/)
 HTML:


 {{{

 <!DOCTYPE html>
 <html>
 <head><title>Hello World</title></head>
 <body>
 <iframe srcdoc="<body></body>"></iframe>
 </body>
 </html>
 }}}



 It'll mess it up incorrectly converting the closing quote of the srdoc
 like such:


 {{{
 <iframe id="deeplawn-frame" srcdoc="<body></body>” ></iframe>
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63426>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list