Re: [PHP-DEV] Decoding HTML and the Ambiguous Ampersand

2024-08-17 Thread Dennis Snell
On Aug 17, 2024, at 11:20 AM, Mel Dafert wrote: > > On August 16, 2024 2:59:11 AM GMT+02:00, Dennis Snell > mailto:dennis.sn...@automattic.com>> wrote: >> >> All, >> >> >> I have submitted an RFC draft for including the proposed feature from this >> issue. Thanks to everyone who helped me in

Re: [PHP-DEV] Decoding HTML and the Ambiguous Ampersand

2024-07-10 Thread Jim Winstead
On Tue, Jul 9, 2024, at 5:00 PM, Dennis Snell wrote: > [ lots snipped ] > > We’re exploring pure-PHP solutions to these problems in WordPress in attempts > to improve the reliability and safety of handling HTML. I’d love to hear your > thoughts and know if anyone is willing to work with me to cr

[PHP-DEV] Decoding HTML and the Ambiguous Ampersand

2024-07-09 Thread Dennis Snell
Greetings all, The `html_entity_decode( … ENT_HTML5 … )` function has a number of issues that I’d like to correct.  - It’s missing 720 of HTML5’s specified named character references.  - 106 of these are named character references which do not require a trailing semicolon, such as `´`  - It’s