New operator for htmlspecialchars

From: Date: Tue, 15 Jan 2013 21:22:14 +0000
Subject: New operator for htmlspecialchars
Groups: php.internals 
Request: Send a blank email to [email protected] 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


Thread (3 messages)

« previous php.internals (#64974) next »