Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125029 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id ED97C1A00BD for <internals@lists.php.net>; Sat, 17 Aug 2024 18:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723918940; bh=9SFEOIf5+o5cB3n+bG+UMtuX6M4SOYqMBGO4Ed9d46o=; h=Date:From:To:Subject:In-Reply-To:References:From; b=H+VKxwinLVldlkDA45FRn6SqKm80twwkdxz4N1t1fWTiTUcn8pcOdxT/5J4XoeHjs Vr5elelg2X2/fVD3O+ZPs7jHtq9oPesS/GAcG8LoEJ7w1VyV3kVZNXi88LaDFPgrGW iOx6xfYh85uaOiwXQwrkSqiEDGT1gvH3xXZZvyt9jEod7vNNFWuAPx6xZDpgNtj/DB pafpzXXu2ZsQ56bwmh0T1xQdM++SLnapQF8JDGTuRdg4oSMuDvscNAyjmWzagtVPnZ Bi/o2ErDN1RciQGln3u+YQr92EEWWOKgdvlOICCEBrDvzm6M85n776mueXLxdar1+e uSDFMiPOKwxcg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0D25B180059 for <internals@lists.php.net>; Sat, 17 Aug 2024 18:22:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: <mel@dafert.at> Received: from mail04.x-net.at (mail04.x-net.at [83.65.7.57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for <internals@lists.php.net>; Sat, 17 Aug 2024 18:22:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail04.x-net.at (Postfix) with ESMTP id 1674A600BC for <internals@lists.php.net>; Sat, 17 Aug 2024 20:20:28 +0200 (CEST) Received: from mail04.x-net.at ([127.0.0.1]) by localhost (x-zimbra04.x [127.0.0.1]) (amavis, port 10032) with ESMTP id kzKKR66IBw9r for <internals@lists.php.net>; Sat, 17 Aug 2024 20:20:27 +0200 (CEST) X-Virus-Scanned: amavis at x-zimbra04.x DKIM-Filter: OpenDKIM Filter v2.10.3 mail02.x-net.at 62BCD3805CA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dafert.at; s=36750624-FFB8-11ED-A31F-F74EAB1B2BED; t=1723918823; bh=9SFEOIf5+o5cB3n+bG+UMtuX6M4SOYqMBGO4Ed9d46o=; h=Date:From:To:Message-ID:MIME-Version; b=nyq6SdaB/03ykQWPAtldk8QByIY/OhCIgJJoPVAjeDiaLteM2EOz4qjlDD81bGAdJ 5qNsAfi101K7/pFmusnao5FxwFlsE+URoPnzuZgoCppkB28WGCckFP36XkdEf3+Gxl MIA2FNUKDQi7nxyo9/dD0VFqThdVYhggF93w8iAr4GYt+dnsIbKDntv845WinME2Aq PV2i9Vnjj7ZxWd6UuXrMSi4JRi/uhldzYSRRdE6CC0hjEgJGz8gzVYz2syu4T8qtUL 5Uva4OrLGo4s06yzNZ8BaVxU+FRFx+gscP314XVE2Yqj+X2v6cozWBZ3JFs+tpAx6X ZJMyMZSPn0sKA== X-Virus-Scanned: amavis at x-t.at Date: Sat, 17 Aug 2024 20:20:21 +0200 To: internals@lists.php.net Subject: Re: [PHP-DEV] Re: Decoding HTML and the Ambiguous Ampersand User-Agent: K-9 Mail for Android In-Reply-To: <1FD3A9B0-D46F-4589-A803-3CC2347EC7DF@automattic.com> References: <CAA8B983-FD39-4AB1-B314-62608B0C0EF4@a8c.com> <1FD3A9B0-D46F-4589-A803-3CC2347EC7DF@automattic.com> Message-ID: <C0BA0692-33CD-498C-B07E-6028114C40B5@dafert.at> Precedence: bulk list-help: <mailto:internals+help@lists.php.net list-unsubscribe: <mailto:internals+unsubscribe@lists.php.net> list-post: <mailto:internals@lists.php.net> List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: mel@dafert.at (Mel Dafert) On August 16, 2024 2:59:11 AM GMT+02:00, Dennis Snell <dennis=2Esnell@autom= attic=2Ecom> wrote: > >All, > > >I have submitted an RFC draft for including the proposed feature from thi= s issue=2E Thanks to everyone who helped me in this process=2E It=E2=80=99s= my first RFC, so I apologize in advance for any mistakes I=E2=80=99ve made= in the process=2E > > >https://wiki=2Ephp=2Enet/rfc/decode_html > > > > >This is proposed for a future PHP version after 8=2E4=2E > > >Warmly, >Dennis Snell > Hello, I have just one nit: I think it would be better to use an enum for the `$c= ontext` parameter rather than a constant=2E It also feels like it ought to be nice to find some reasonable default=2E= =2E=2E I'm sure many programmers will see this parameter and be unsure which value to use=2E There should, at the very least, be clear doc= umentation with real-world examples in which cases which one should be used=2E All in all, this is definitely a welcome improvement! Regards, Mel