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 #1

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72597

Actions #2

Updated by Gerrit Code Review almost 3 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72597

Actions #3

Updated by Gerrit Code Review almost 3 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72579

Actions #4

Updated by Gerrit Code Review almost 3 years ago

Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72580

Actions #5

Updated by Albrecht Köhnlein almost 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from Resolved to Under Review

Patch set 2 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72580

Actions #7

Updated by Albrecht Köhnlein almost 3 years ago

  • Status changed from Under Review to Resolved
Actions #8

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions #9

Updated by Stefan Bürk over 1 year ago

  • Related to Bug #96347: DB to RTE: <br/> tags (without whitespace) are converted to HTML entities added
Actions

Also available in: Atom PDF