Skip to content

Commit

Permalink
[BUGFIX] Fix tidy vh: return string instead of tidy-object
Browse files Browse the repository at this point in the history
  • Loading branch information
wimbaro authored and NamelessCoder committed Nov 13, 2023
1 parent 609e1b7 commit be65ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Format/TidyViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function renderStatic(
return $content;
}
$tidy->cleanRepair();
return $tidy;
return $tidy->root()->value;
}
throw new \RuntimeException(
'TidyViewHelper requires the PHP extension "tidy" which is not installed or not loaded.',
Expand Down

0 comments on commit be65ecd

Please sign in to comment.