Bug #96307
closed<br/> tags (without whitespace) are converted to HTML entities
100%
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
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
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
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
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
Updated by Albrecht Köhnlein almost 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ff7a2f228d932099010082fd587fcc4a8557848e.
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
Updated by Albrecht Köhnlein almost 3 years ago
- Status changed from Under Review to Resolved
Applied in changeset ca42ad7351dc432962f5a921d7a432a65aba3b16.
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