Skip to content
Snippets Groups Projects
Commit 4db7af5a authored by Luke Leber's avatar Luke Leber
Browse files

Issue #3301544 by Luke.Leber, matthieuscarset: BigPipe and Ajax scripts broken...

Issue #3301544 by Luke.Leber, matthieuscarset: BigPipe and Ajax scripts broken with Tidy HTML enabled
parent a618c442
No related branches found
No related tags found
1 merge request!3Issue #3301544: BigPipe and Ajax scripts broken with Tidy HTML enabled
......@@ -39,6 +39,7 @@ class Tidy implements TidyInterface {
*/
public function format($html) {
// @see https://api.html-tidy.org/tidy/tidylib_api_5.8.0/tidy_quickref.html
// @TODO: Make these presets configurable.
$options = [
'indent' => '2',
......@@ -46,6 +47,9 @@ class Tidy implements TidyInterface {
'output-html' => TRUE,
'wrap' => 0,
'output-encoding' => TRUE,
'escape-scripts' => FALSE,
'drop-empty-elements' => FALSE,
'drop-empty-paras' => FALSE,
];
return $this->tidy->repairString($html, $options);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment