You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add comment like this to any template file <?php //This is a test comment?>
In the admin panel enable HTML minification
Switch to production deploy mode (minification is not applied in developer mode)
Check page.
Expected result
The template should work
Actual result
The comment + the ‘?>’ will be removed, i.e template will be broken
The error comes from the file Magento\Framework\View\Template\Html\Minifier where it replaces it on the line 131 (version 2.1.2) in the following pattern
Preconditions
Steps to reproduce
add comment like this to any template file
<?php //This is a test comment?>
In the admin panel enable HTML minification
Switch to production deploy mode (minification is not applied in developer mode)
Check page.
Expected result
Actual result
The error comes from the file Magento\Framework\View\Template\Html\Minifier where it replaces it on the line 131 (version 2.1.2) in the following pattern
‘#(?<!:|\\\\|\’|“)//(?!\s*\<\!\[)(?!\s*]]\>)[^\n\r]*#‘,
Let me know if you need any more info
The text was updated successfully, but these errors were encountered: