Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/voku/simple_html_dom
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/voku/simple_html_dom:
  Apply fixes from StyleCI
  • Loading branch information
voku committed Mar 4, 2019
2 parents 2ab7e80 + 7c5d47b commit 3084547
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/voku/helper/HtmlDomParser.php
Expand Up @@ -473,9 +473,9 @@ protected function html5FallbackForScriptTags(string &$html)
{
// regEx for e.g.: [<script id="elements-image-2">...<script>]
$regExSpecialScript = '/<(script)(?<attr>[^>]*)>(?<content>.*)<\/\1>/isU';
$html = \preg_replace_callback($regExSpecialScript, function($scripts) {
return '<script' . $scripts['attr'] . '>' . \str_replace('</', '<\/',$scripts['content']) . '</script>';
},$html);
$html = \preg_replace_callback($regExSpecialScript, function ($scripts) {
return '<script' . $scripts['attr'] . '>' . \str_replace('</', '<\/', $scripts['content']) . '</script>';
}, $html);
}

/**
Expand Down

0 comments on commit 3084547

Please sign in to comment.