Skip to content

Commit

Permalink
[BUGFIX] Remove obsolete html_entity_decode (#720)
Browse files Browse the repository at this point in the history
It was added because TYPO3 v9 had some encoding issue.
Now it causes some problems, e.g.:
Having a tag in a CE with a data attribute like:
data-focus-point="{"x":0.5,"y":0.5}"
html_entity_decode transforms it to:
data-focus-point="{"x":0.5,"y":0.5}"
so the value of data-focus-point is just "{", causing incorrect JS behavior.
  • Loading branch information
webian authored Sep 11, 2023
1 parent b7544e3 commit 5fd6a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/ContentEditableWrapperService.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function wrapContent(string $table, int $uid, array $dataArr, string $con
$tagBuilder = GeneralUtility::makeInstance(
TagBuilder::class,
$this->contentEditableWrapperTagName,
html_entity_decode($inlineActionTagBuilder->render() . $content)
$inlineActionTagBuilder->render() . $content
);

$tagBuilder->forceClosingTag(true);
Expand Down

0 comments on commit 5fd6a75

Please sign in to comment.