Re: [RFC Idea] Short echo tag with automatic HTML escaping (<?~ ... ?>)
| From: | Sara Golemon | Date: | Wed, 24 Dec 2025 19:11:51 +0000 |
| Subject: | Re: [RFC Idea] Short echo tag with automatic HTML escaping (<?~ ... ?>) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-129689@lists.php.net to get a copy of this message | ||
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