Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #15006, comment 14


Ignore:
Timestamp:
08/24/2014 09:21:37 PM (9 years ago)
Author:
codeclarified
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15006, comment 14

    initial v1  
    1111}}}
    1212
    13 Attaching a patch that updates the regex near line 424 to handle <p> tags that have attributes such as the text-align mentioned above. This left some orphan </p> tags, and balanceTags() looks like it handled that issue, although this probably needs to be tested a bit more thoroughly.
     13Attaching a patch that updates the regex near line 424 to handle <p> tags that have attributes such as the text-align mentioned above. This left some orphan </p> tags, and balanceTags() looks like it handled that issue, although this probably needs to be tested a bit more thoroughly. With the content above, the empty <p> tags are completely removed, other tags are left as expected.
    1414
    1515That said, this may also be a wontfix issue - in HTML5 it is perfectly valid to have <p> tags without a matching closing tag.