Skip to content

Commit efa041a

Browse files
authored
fix: Escaping range and values summarizer state (#19502)
1 parent 8c89a0a commit efa041a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/tables/src/Columns/Summarizers/Range.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ public function toEmbeddedHtml(): string
155155

156156
<?php if (filled($from) || filled($to)) { ?>
157157
<span>
158-
<?= $from ?>
158+
<?= e($from) ?>
159159

160160
<?= (filled($from) && filled($to)) ? '-' : '' ?>
161161

162-
<?= $to ?>
162+
<?= e($to) ?>
163163
</span>
164164
<?php } ?>
165165
</div>

packages/tables/src/Columns/Summarizers/Values.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function toEmbeddedHtml(): string
4747
<ul <?= $this->isBulleted() ? 'class="fi-bulleted"' : '' ?>>
4848
<?php foreach ($state as $stateItem) { ?>
4949
<li>
50-
<?= $this->formatState($stateItem) ?>
50+
<?= e($this->formatState($stateItem)) ?>
5151
</li>
5252
<?php } ?>
5353
</ul>

0 commit comments

Comments
 (0)