Skip to content

Commit

Permalink
Merge pull request #11 from dlubitz/patch-2
Browse files Browse the repository at this point in the history
Enforce a single root tag for HTML Hyphenation
  • Loading branch information
jonnitto authored Mar 1, 2023
2 parents d03af1e + 790c442 commit ff4a337
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Fusion/Implementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ public function evaluate()

switch ($this->getType()) {
case 'html':
$html = mb_convert_encoding($this->getContent(), 'HTML-ENTITIES', "UTF-8");
$html = '<div>' . mb_convert_encoding($this->getContent(), 'HTML-ENTITIES', "UTF-8") . '</div>';
$result = $syllable->hyphenateHtml($html);
$result = substr(trim($result), 5, -6);
break;
case 'test':
// Break missing intendedly
Expand Down

0 comments on commit ff4a337

Please sign in to comment.