Skip to content

Commit 1d773ec

Browse files
MAGETWO-34293: Html minification works incorrectly in Layered Navigation
1 parent 891bdc7 commit 1d773ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
@@ -113,7 +113,7 @@ public function minify($file)
113113
{
114114
$file = $this->rootDirectory->getRelativePath($file);
115115
$content = preg_replace(
116-
'#\s+</#',
116+
'#(?<!]]>)\s+</#',
117117
'</',
118118
preg_replace(
119119
'#((?:<\?php\s+(?!echo)[^\?]*)\?>)\s+#',

lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function testMinify()
133133
}
134134
});
135135
//]]>
136-
</script><?php echo "http://some.link.com/" ?> <em>inline text</em></body></html>
136+
</script><?php echo "http://some.link.com/" ?> <em>inline text</em></body></html>
137137
TEXT;
138138

139139
$this->appDirectory->expects($this->once())

0 commit comments

Comments
 (0)