[wp-trac] [WordPress Trac] #14674: HR destroys HTML

WordPress Trac noreply at wordpress.org
Wed Aug 24 07:02:25 UTC 2016


#14674: HR destroys HTML
---------------------------------------------+-----------------------------
 Reporter:  thomask                          |       Owner:
     Type:  defect (bug)                     |      Status:  reopened
 Priority:  normal                           |   Milestone:  Future Release
Component:  Formatting                       |     Version:  3.0
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch needs-testing wpautop  |     Focuses:
---------------------------------------------+-----------------------------

Comment (by MattyRob):

 The current patch doesn't take into account the HTML <hr> tag as well
 XHTML <hr /> tag. Updated patch takes this into account using a
 preg_replace() call and also demonstrates using two consecutive
 str_replace calls (I'm not sure which will be faster).

 In my testing it works fine.

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


More information about the wp-trac mailing list