Actions
Bug #96307
closed<br/> tags (without whitespace) are converted to HTML entities
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2021-12-09
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
I have some RTE fields where the origin contents are not edited manually but came from other sources. This editor fields contain <br/>
without whitespace as line breaks.
As soon as an editor wants to edit records with that RTE fields, the RTE converts the <br/>
into <br/>
, while everything is fine with <br>
or <br />
(with whitespace). You can see the attached video.
I do not have an individual RTE configuration, this seems to be default behavior.
I was curious, what will happen with <hr/>
tags and found out, the problem does not exist with <hr/>
. There already is a hotfix/workaround that replaces <hr/>
with <hr />
https://github.com/TYPO3/typo3/blob/main/typo3/sysext/core/Classes/Html/RteHtmlParser.php#L389
Files
Actions