[wp-trac] [WordPress Trac] #8912: wptexturize malforms HTML comments that contain HTML tags

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 15 23:02:41 UTC 2010


#8912: wptexturize malforms HTML comments that contain HTML tags
--------------------------+-------------------------------------------------
 Reporter:  Otto42        |        Owner:  anonymous
     Type:  defect (bug)  |       Status:  reopened 
 Priority:  normal        |    Milestone:  3.0      
Component:  Formatting    |      Version:  2.9.2    
 Severity:  normal        |   Resolution:           
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by Viper007Bond):

 Replying to [comment:8 otto42]:
 > How is it a separate issue? It does exactly what I said it did last
 year. The comment got converted to the 8211 incorrectly. It's the same
 issue.

 `<!-- foobar -->` works though, right? That was the original issue.

 The reason `--` is being converted to `&#8211;` in your above example is
 because the HTML tags in the comment are breaking `wptexturize()`'s
 comment detection (it doesn't realize it's an HTML comment). It's totally
 a valid issue, but this is a bug in the HTML comment detection code rather
 than all HTML comments.

 In short, I'm just nitpicking minor technicalities. Don't mind me. :)

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


More information about the wp-trac mailing list