Skip to content

Commit d82e458

Browse files
committed
AC-1194: Update tags
Fixed UnsanitizedHtm
1 parent f2ab1e5 commit d82e458

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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">
1010
<!-- ko if: displayingBlockPreview -->
11-
<!-- ko with: {dataMainUnsanitizedHtml: html, initializeWidgets: initializeWidgets} -->
11+
<!-- ko with: {dataMainUnsanitizedHtml: data.main.html, initializeWidgets: initializeWidgets} -->
1212
<div class="rendered-content" html="dataMainUnsanitizedHtml" afterRender="initializeWidgets"></div>
1313
<!-- /ko -->
1414
<!-- /ko -->

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
-->
77

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

0 commit comments

Comments
 (0)