We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35809c5 + 78afe57 commit ea22788Copy full SHA for ea22788
user_guide_src/source/outgoing/alternative_php.rst
@@ -15,11 +15,11 @@ Alternative Echos
15
16
Normally to echo, or print out a variable you would do this::
17
18
- <?php echo $variable; ?>
+ <?php echo esc($variable); ?>
19
20
With the alternative syntax you can instead do it this way::
21
22
- <?= $variable ?>
+ <?= esc($variable) ?>
23
24
Alternative Control Structures
25
==============================
user_guide_src/source/outgoing/alternative_php/001.php
@@ -2,7 +2,7 @@
2
3
<?php foreach ($todo as $item): ?>
4
5
- <li><?= $item ?></li>
+ <li><?= esc($item) ?></li>
6
7
<?php endforeach ?>
8
0 commit comments