Skip to content

Commit

Permalink
Convert applicable characters to HTML entities
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Jan 5, 2025
1 parent a58e564 commit c3c16d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Debug/ValidationCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ protected function renderValidations() : string
<td rowspan="<?= $count ?>"><?= $index + 1 ?></td>
<td rowspan="<?= $count ?>"><?= $item['type'] ?></td>
<td rowspan="<?= $count ?>"><?= $count ?></td>
<td><?= $errors[0]['field'] ?? '' ?></td>
<td><?= $errors[0]['error'] ?? '' ?></td>
<td><?= \htmlentities($errors[0]['field'] ?? '') ?></td>
<td><?= \htmlentities($errors[0]['error'] ?? '') ?></td>
<td rowspan="<?= $count ?>"><?= Debugger::roundSecondsToMilliseconds($item['end'] - $item['start']) ?></td>
</tr>
<?php for ($i = 1; $i < $count; $i++): ?>
<tr>
<td><?= $errors[$i]['field'] ?></td>
<td><?= $errors[$i]['error'] ?></td>
<td><?= \htmlentities($errors[$i]['field']) ?></td>
<td><?= \htmlentities($errors[$i]['error']) ?></td>
</tr>
<?php endfor;
endforeach; ?>
Expand Down

0 comments on commit c3c16d4

Please sign in to comment.