-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Since $protectedChildNodes may itself contain other protected HTML (i.e., other $protectedChildNodesHelper tags), the following lines in /vendor/voku/html-min/src/voku/helper/HtmlMin.php:
if (\strpos($html, $this->protectedChildNodesHelper) !== false) {
$html = (string) \preg_replace_callback(
'/<(?<element>' . $this->protectedChildNodesHelper . ')(?<attributes> [^>]*)?>(?<value>.*?)<\/' . $this->protectedChildNodesHelper . '>/',
[$this, 'restoreProtectedHtml'],
$html
);
}
should be:
while (\strpos($html, $this->protectedChildNodesHelper) !== false) {
$html = (string) \preg_replace_callback(
'/<(?<element>' . $this->protectedChildNodesHelper . ')(?<attributes> [^>]*)?>(?<value>.*?)<\/' . $this->protectedChildNodesHelper . '>/',
[$this, 'restoreProtectedHtml'],
$html
);
}
Metadata
Metadata
Assignees
Labels
No labels