New operator for htmlspecialchars
| From: | Thomas Bley | Date: | Tue, 15 Jan 2013 21:22:14 +0000 |
| Subject: | New operator for htmlspecialchars | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-64974@lists.php.net to get a copy of this message | ||
Hello,
I created a small ticket to propose a shorter syntax for htmlspecialchars:
old:
<?= htmlspecialchars($str, ENT_QUOTES) ?>
new:
<?+ $str ?>
or:
<?~ $str ?>
any comments, pros and cons?
https://bugs.php.net/bug.php?id=62574
Best regards,
Thomas