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: signature.asc
Description: OpenPGP digital signature

Reply via email to