Bug #21620 Version Retired

RTE removing P tags from existing entry data

Version: 2.10.1 Reporter: Eric N

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

When I open imported entries from some outside sources (Datagrab) they come in with HTML formatting which is proper.
However, when opened in the admin Entry editor, the RTE clears all the P tags causing the nicely formatted article to become one but blob. Although it leaves the B, I and H tags alone.

The culprit seems to be the line below, if I comment it out it stops the issue but I don’t know if that is a good thing to do or not long term.

This is similar to other bugs with RTE but I think it may be a unique situation with the imported, already formatted code.
Rte.lib.php around line 527

  • $data = preg_replace(”/<\/p>\n*/is”, “\n\n”, $data);

    Turns
    some
    code
    Into
    some code

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases