File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
app/code/Magento/Theme/view/frontend/templates/html Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 33 * Copyright 2015 Adobe
44 * All Rights Reserved.
55 */
6-
6+ /**
7+ * Escaper
8+ *
9+ * @var \Magento\Framework\Escaper
10+ */
711/**
812 * @var $block \Magento\Theme\Block\Html\Title
913 */
@@ -16,20 +20,20 @@ if ($pageHeading) {
1620 $ titleHtml = '<span class="base" data-ui-id="page-title-wrapper" '
1721 . $ block ->getAddBaseAttribute ()
1822 . '> '
19- . $ block ->escapeHtml ($ pageHeading )
23+ . $ escaper ->escapeHtml ($ pageHeading )
2024 . '</span> ' ;
2125}
2226?>
2327
24- <?php if ($ titleHtml ) : ?>
25- <div class="page-title-wrapper<?= $ block ->escapeHtmlAttr ($ cssClass ) ?> ">
28+ <?php if ($ titleHtml ): ?>
29+ <div class="page-title-wrapper<?= $ escaper ->escapeHtmlAttr ($ cssClass ) ?> ">
2630 <h1 class="page-title"
27- <?php if ($ block ->getId ()) : ?> id="<?= $ block ->escapeHtmlAttr ($ block ->getId ()) ?> " <?php endif ; ?>
28- <?php if ($ block ->getAddBaseAttributeAria ()) : ?>
29- aria-labelledby="<?= $ block ->escapeHtmlAttr ($ block ->getAddBaseAttributeAria ()) ?> "
31+ <?php if ($ block ->getId ()): ?> id="<?= $ escaper ->escapeHtmlAttr ($ block ->getId ()) ?> " <?php endif ; ?>
32+ <?php if ($ block ->getAddBaseAttributeAria ()): ?>
33+ aria-labelledby="<?= $ escaper ->escapeHtmlAttr ($ block ->getAddBaseAttributeAria ()) ?> "
3034 <?php endif ; ?> >
3135 <?= /* @noEscape */ $ titleHtml ?>
3236 </h1>
3337 <?= $ block ->getChildHtml () ?>
3438</div>
35- <?php endif ; ?>
39+ <?php endif ; ?>
You can’t perform that action at this time.
0 commit comments