Skip to content
Snippets Groups Projects
Unverified Commit 74aa74b6 authored by Scott Joudry's avatar Scott Joudry
Browse files

Issue #3258507 - changed the order of the minification callbacks - iframes go before script tags.

parent 4c79118b
No related branches found
No related tags found
No related merge requests found
......@@ -162,8 +162,8 @@ class MinifyHTMLExit implements EventSubscriberInterface {
$callbacks = [
'minifyhtmlPlaceholderCallbackTextarea' => '/\\s*<textarea(\\b[^>]*?>[\\s\\S]*?<\\/textarea>)\\s*/i',
'minifyhtmlPlaceholderCallbackPre' => '/\\s*<pre(\\b[^>]*?>[\\s\\S]*?<\\/pre>)\\s*/i',
'minifyhtmlPlaceholderCallbackScript' => '/\\s*<script(\\b[^>]*?>[\\s\\S]*?<\\/script>)\\s*/i',
'minifyhtmlPlaceholderCallbackIframe' => '/\\s*<iframe(\\b[^>]*?>[\\s\\S]*?<\\/iframe>)\\s*/i',
'minifyhtmlPlaceholderCallbackScript' => '/\\s*<script(\\b[^>]*?>[\\s\\S]*?<\\/script>)\\s*/i',
'minifyhtmlPlaceholderCallbackStyle' => '/\\s*<style(\\b[^>]*?>[\\s\\S]*?<\\/style>)\\s*/i',
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment