From 790c4420688841f7083e8fdaa8aaadf3876106b2 Mon Sep 17 00:00:00 2001 From: Denny Lubitz Date: Tue, 28 Feb 2023 15:14:45 +0100 Subject: [PATCH] Enforce a single root tag for HTML Hyphenation --- Classes/Fusion/Implementation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/Fusion/Implementation.php b/Classes/Fusion/Implementation.php index 4bad572..636009c 100644 --- a/Classes/Fusion/Implementation.php +++ b/Classes/Fusion/Implementation.php @@ -117,8 +117,9 @@ public function evaluate() switch ($this->getType()) { case 'html': - $html = mb_convert_encoding($this->getContent(), 'HTML-ENTITIES', "UTF-8"); + $html = '
' . mb_convert_encoding($this->getContent(), 'HTML-ENTITIES', "UTF-8") . '
'; $result = $syllable->hyphenateHtml($html); + $result = substr(trim($result), 5, -6); break; case 'test': // Break missing intendedly