Re: [PHP-DEV] [RFC Idea] Short echo tag with automatic HTML escaping (<?~ ... ?>)

On Tue, Dec 23, 2025 at 4:11 AM Anton Smirnov <sandfox@sandfox.me> wrote:

On 23/12/2025 11:06, Sergei Issaev wrote:

<?php echo htmlspecialchars($expr, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML5, 'UTF-8'); ?>

htmlspecialchars is configurable for a reason and your flags are
arbitrarily different from the function default

This is the only necessary argument to reject this feature request out of hand. Hard pass.

-Sara