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 3
3
* Copyright 2015 Adobe
4
4
* All Rights Reserved.
5
5
*/
6
-
6
+ /**
7
+ * Escaper
8
+ *
9
+ * @var \Magento\Framework\Escaper
10
+ */
7
11
/**
8
12
* @var $block \Magento\Theme\Block\Html\Title
9
13
*/
@@ -16,20 +20,20 @@ if ($pageHeading) {
16
20
$ titleHtml = '<span class="base" data-ui-id="page-title-wrapper" '
17
21
. $ block ->getAddBaseAttribute ()
18
22
. '> '
19
- . $ block ->escapeHtml ($ pageHeading )
23
+ . $ escaper ->escapeHtml ($ pageHeading )
20
24
. '</span> ' ;
21
25
}
22
26
?>
23
27
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 ) ?> ">
26
30
<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 ()) ?> "
30
34
<?php endif ; ?> >
31
35
<?= /* @noEscape */ $ titleHtml ?>
32
36
</h1>
33
37
<?= $ block ->getChildHtml () ?>
34
38
</div>
35
- <?php endif ; ?>
39
+ <?php endif ; ?>
You can’t perform that action at this time.
0 commit comments