[wp-trac] [WordPress Trac] #8912: wp_texturize breaks HTML comments in posts

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 21 20:16:08 GMT 2009


#8912: wp_texturize breaks HTML comments in posts
--------------------------+-------------------------------------------------
 Reporter:  Otto42        |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  General       |     Version:  2.7      
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 Because it's replacing -- with #8211, a comment like <!-- whatever --> put
 into the HTML part of a post gets broken.

 This makes it difficult for people writing special HTML in posts (like
 people putting in object tags, or javascript, or whatever) to do that sort
 of thing.

 What is needed is to recognize --> as different from -- and not replace it
 with the en dash in that case.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8912>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list