[wp-trac] [WordPress Trac] #31695: Extra unclosed <p> tag before <script> breaking the_content()

WordPress Trac noreply at wordpress.org
Fri Mar 20 15:52:51 UTC 2015


#31695: Extra unclosed <p> tag before <script> breaking the_content()
------------------------------+------------------------------
 Reporter:  vaurdan           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Formatting        |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  needs-unit-tests  |     Focuses:
------------------------------+------------------------------

Comment (by vaurdan):

 Actually, my patch isn't fixing the issue ( props to @paulschreiber for
 the heads up ). There is still an unclosed `<p>` tag.

 I'm trying to fix this by adding a regex that will search for a `<p>` that
 doesn't have a correspondent `</p>` tag, and strip the tag.

 Do you think this could be the best way?

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


More information about the wp-trac mailing list