3 ms·
Mine, too, although I usually do my escaping/encoding in the template itself, so it becomes: <?= h($name) ?> Which isn't that terrible. The PHP developers
by rix0r 16y ago
Mine, too, although I usually do my escaping/encoding in the template itself, so it becomes:
<?= h($name) ?>
Which isn't that terrible.
The PHP developers don't make this easy though, as "short tags" are officially recommended to be disabled, so to write portable PHP you'd have to do
<?php= h($name) ?>
Every time, which adds visual noise that gets worse the more tags you write.