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
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```