Skip to content

Commit d3581c4

Browse files
author
Joan He
committed
MAGETWO-99282: Eliminate @escapeNotVerified in Magento_Catalog module
1 parent b85d140 commit d3581c4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/category/widget/tree.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Ext.extend(Ext.tree.TreePanel.Enhanced, Ext.tree.TreePanel, {
4242

4343
if (firstLoad) {
4444
<?php if ($block->getNodeClickListener()) :?>
45-
this.addListener('click', <?= $block->escapeJs($block->getNodeClickListener()) ?>.createDelegate(this));
45+
this.addListener('click', <?= /* @noEscape */ $block->getNodeClickListener() ?>.createDelegate(this));
4646
<?php endif; ?>
4747
}
4848

app/code/Magento/Catalog/view/frontend/templates/product/view/addtocart.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
value="<?= $block->getProductDefaultQty() * 1 ?>"
2323
title="<?= $block->escapeHtmlAttr(__('Qty')) ?>"
2424
class="input-text qty"
25-
data-validate="<?= /* @noEscape */ json_encode($block->getQuantityValidators()) ?>"
25+
data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"
2626
/>
2727
</div>
2828
</div>

app/code/Magento/Catalog/view/frontend/templates/product/view/attribute.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ if ($_attributeType && $_attributeType == 'text') {
4545
<?php if ($renderLabel) :?>
4646
<strong class="type"><?= $block->escapeHtml($_attributeLabel) ?></strong>
4747
<?php endif; ?>
48-
<div class="value" <?= /* @noEscape */ $_attributeAddAttribute ?>><?= $block->escapeHtmlAttr($_attributeValue) ?></div>
48+
<div class="value" <?= /* @noEscape */ $_attributeAddAttribute ?>><?= /* @noEscape */ $_attributeValue ?></div>
4949
</div>
5050
<?php endif; ?>

0 commit comments

Comments
 (0)