Re: [RFC Idea] Short echo tag with automatic HTML escaping (<?~ ... ?>)
| From: | Anton Smirnov | Date: | Tue, 23 Dec 2025 10:24:44 +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-129677@lists.php.net to get a copy of this message | ||
On 23/12/2025 12:07, Anton Smirnov wrote:
Slight self-correction: with short_open_tag=0 it isn't a syntax error either, it just echoes it to the output. This makes me think that introducing a new short tag would be virtually impossible to do without a major release. -- Anton- Syntax is currently a parse error → no BC break.It's not, you forgot about short_open_tag=1, in which case it's interpreted as <? (~$expr) ?>