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.
1 parent 9bf27a1 commit 78afe57Copy full SHA for 78afe57
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