Skip to content

Commit e5463f7

Browse files
MC-3959: Button Doesn't Render HTML On Storefront
- fix tag-escaper to escape and unescape once
1 parent 27abcb4 commit e5463f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/converter/html/tag-escaper.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/converter/html/tag-escaper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class TagEscaper implements ConverterInterface {
1515
* @returns {string | object}
1616
*/
1717
public fromDom(value: string): string | object {
18-
return unescape(unescape(value));
18+
return unescape(value);
1919
}
2020

2121
/**
@@ -26,6 +26,6 @@ export default class TagEscaper implements ConverterInterface {
2626
* @returns {string}
2727
*/
2828
public toDom(name: string, data: DataObject): string {
29-
return escape(escape(data[name].toString()));
29+
return escape(data[name].toString());
3030
}
3131
}

0 commit comments

Comments
 (0)