Skip to content

Commit 8dc1fdd

Browse files
committed
docs: escape variables in view
Escaping by default is a good practice.
1 parent 2e857fd commit 8dc1fdd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/outgoing/view_cells.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ At the most basic level, all you need to implement within the class are public p
100100
}
101101

102102
// app/Cells/alert_message_cell.php
103-
<div class="alert alert-<?= $type; ?>">
104-
<?= $message; ?>
103+
<div class="alert alert-<?= esc($type, 'attr') ?>">
104+
<?= esc($message) ?>
105105
</div>
106106

107107
.. _generating-cell-via-command:

0 commit comments

Comments
 (0)