Re: New escaped output operator

From: Date: Sat, 18 Jun 2016 14:03:15 +0000
Subject: Re: New escaped output operator
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-94107@lists.php.net to get a copy of this message
On 6/18/16 12:56 AM, Yasuo Ohgaki wrote: > We may be better to consider "<?= $str" to be "<?php echo > htmlspecialchars($str)" rather than "<?php echo $str", but this change > would be for PHP 8. No, that would be highly inadvisable. As it's been pointed out, people use PHP templating for things besides just HTML. And if you made this change, then <?= could no longer be used in echoing out javascript, XML, RSS feeds, making custom API responses, etc. Eli -- | Eli White | http://eliw.com/ | Twitter: EliW |

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.internals (#94107) next »