Skip to content

Commit b308c33

Browse files
committed
MC-36942: HTML minification strips triple slashes from html string in phtml
1 parent 5d8908c commit b308c33

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/View/Template/Html

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Template/Html/Minifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function ($match) use (&$heredocs) {
144144
'#(?<!:|\\\\|\'|"|/)//(?!/)(?!\s*\<\!\[)(?!\s*]]\>)[^\n\r]*#',
145145
'',
146146
preg_replace(
147-
'#(?<!:|\'|")//[^\n\r]*(\?\>)#',
147+
'#(?<!:|\'|")//[^\n\r\<\?]*(\?\>)#',
148148
' $1',
149149
preg_replace(
150150
'#(?<!:)//[^\n\r]*(\<\?php)[^\n\r]*(\s\?\>)[^\n\r]*#',

0 commit comments

Comments
 (0)