Skip to content

Commit 9f09351

Browse files
committed
AC-1194: Update tags
Fixed UnsanitizedHtml
1 parent b5eae6f commit 9f09351

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/block/default/preview.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77

88
<div class="pagebuilder-content-type pagebuilder-block" event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false" css="{'pagebuilder-block-overlay': displayingBlockPreview()}">
99
<div attr="data.main.attributes" ko-style="data.main.style" css="data.main.css">
10-
<div if="displayingBlockPreview" class="rendered-content" html="data.main.html" afterRender="initializeWidgets"></div>
10+
<!-- ko if: displayingBlockPreview -->
11+
<!-- ko with: {dataMainUnsanitizedHtml: html, initializeWidgets: initializeWidgets} -->
12+
<div class="rendered-content" html="dataMainUnsanitizedHtml" afterRender="initializeWidgets"></div>
13+
<!-- /ko -->
14+
<!-- /ko -->
1115
<div ifnot="displayingBlockPreview" class="pagebuilder-block-placeholder">
1216
<span class="placeholder-text" text="placeholderText"></span>
1317
</div>

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/image/full-width/preview.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@
1616
class="preview-image"
1717
css="getViewportImageData().css"
1818
ko-style="getViewportImageData().style" />
19-
<figcaption if="data.caption.html()"
20-
attr="data.caption.attributes"
21-
css="data.caption.css"
22-
html="data.caption.html"
23-
ko-style="data.caption.style">
19+
<!-- /ko -->
20+
<!-- /ko -->
21+
<!-- ko if: data.caption.html() -->
22+
<!-- ko with: data.caption -->
23+
<!-- ko with: {attributes: attributes, css: css, dataCaptionUnsanitizedHtml: html, style: style} -->
24+
<figcaption attr="attributes"
25+
css="css"
26+
html="dataCaptionUnsanitizedHtml"
27+
ko-style="style">
2428
</figcaption>
2529
</figure>
2630
</div>

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/map/default/preview.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
-->
77

88
<div class="pagebuilder-content-type pagebuilder-map" event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false">
9-
<div visible="!apiKeyValid()" class="google-map-auth-failure-placeholder"><p html="apiKeyErrorMessage"></p></div>
9+
<!-- ko with: {apiKeyErrorMessageUnsanitizedHtml: apiKeyErrorMessage} -->
10+
<div visible="!apiKeyValid()" class="google-map-auth-failure-placeholder"><p html="apiKeyErrorMessageUnsanitizedHtml"></p></div>
1011
<div visible="apiKeyValid" attr="data.main.attributes" css="data.main.css" ko-style="data.main.style" afterRender="renderMap"></div>
1112
<render args="getOptions().template" ></render>
1213
</div>

0 commit comments

Comments
 (0)