Skip to content

Commit 9c9e919

Browse files
author
Denys Rul
committed
MAGETWO-33687: Merge adminhtml and frontend JS template Engine changes
- Add unescape rules
1 parent d77bb38 commit 9c9e919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @returns {String}
3939
*/
4040
function unescape(str) {
41-
return str.replace(/&lt;%/g, '<%').replace(/%&gt;/g, '%>');
41+
return str.replace(/&lt;%|%3C%/g, '<%').replace(/%&gt;|%%3E/g, '%>');
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)