File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Catalog/view/frontend/templates/product/view/options/type Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ $class = ($_option->getIsRequire()) ? ' required' : '';
34
34
id="options_<?php echo $ _option ->getId () ?> _text"
35
35
class="input-text product-custom-option"
36
36
<?php if (!empty ($ _textValidate )) {?>
37
- data-validate=' <?php echo json_encode ($ _textValidate );?> '
37
+ data-validate=" <?php echo $ block -> escapeHtml ( json_encode ($ _textValidate )) ;?> "
38
38
<?php } ?>
39
39
name="options[<?php echo $ _option ->getId () ?> ]"
40
40
value="<?php echo $ block ->escapeHtml ($ block ->getDefaultValue ()) ?> "/>
@@ -50,7 +50,7 @@ $class = ($_option->getIsRequire()) ? ' required' : '';
50
50
<textarea id="options_<?php echo $ _option ->getId () ?> _text"
51
51
class="product-custom-option"
52
52
<?php if (!empty ($ _textAreaValidate )) {?>
53
- data-validate=' <?php echo json_encode ($ _textAreaValidate );?> '
53
+ data-validate=" <?php echo $ block -> escapeHtml ( json_encode ($ _textAreaValidate )) ;?> "
54
54
<?php } ?>
55
55
name="options[<?php echo $ _option ->getId () ?> ]"
56
56
rows="5"
You can’t perform that action at this time.
0 commit comments