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

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 17 20:13:25 UTC 2011


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

Comment (by azaozz):

 On production sites HTML comments in the post_content seem to be extremely
 rare, commented HTML i.e. the example above, are virtually non existent.
 Currently `wptexturize()` supports simple HTML comments properly:
 {{{
 <ul><li>Hello.</li><!--Goodbye.--></ul>
 }}}
 works as expected.

 The only user case for supporting commented HTML seems to be when a plugin
 developer wants to test the plugin's output. Don't think it's worth it
 adding some redundant regexp that will run on hundreds of millions of
 posts every day just for that. Perhaps better would be to add to the
 plugin developers part of the codex that commented HTML is not supported
 in the post content.

 Suggesting: wontfix.

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


More information about the wp-trac mailing list