Project

General

Profile

Actions

Bug #96307

closed

<br/> tags (without whitespace) are converted to HTML entities

Added by Albrecht Köhnlein almost 3 years ago. Updated about 2 years ago.

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 &lt;br/&gt;, 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

br-tags-in-rte.mp4 (265 KB) br-tags-in-rte.mp4 Albrecht Köhnlein, 2021-12-09 15:19

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #96347: DB to RTE: <br/> tags (without whitespace) are converted to HTML entitiesClosed2021-12-13

Actions
Actions

Also available in: Atom PDF