Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94752 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90922 invoked from network); 30 Jul 2016 14:02:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2016 14:02:04 -0000 Authentication-Results: pb1.pair.com header.from=michael.vostrikov@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=michael.vostrikov@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.172 as permitted sender) X-PHP-List-Original-Sender: michael.vostrikov@gmail.com X-Host-Fingerprint: 209.85.220.172 mail-qk0-f172.google.com Received: from [209.85.220.172] ([209.85.220.172:34140] helo=mail-qk0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/40-22978-B53BC975 for ; Sat, 30 Jul 2016 10:02:03 -0400 Received: by mail-qk0-f172.google.com with SMTP id o67so112456825qke.1 for ; Sat, 30 Jul 2016 07:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=hDlaFoN/vgLaR1Js8RiiLEfr/H7CHzu3cjWx3VGC15U=; b=r4VyP5/jRb7vGhhJFz9FoNyyoanE4Yxexo5hQFYF8l+7jN65YyM8Q2D8YkdEZk0zkp jZHR3RNNYzO0QW6YQRbVeQQPeAs8XPTKCWuztu27wI//mWqve8pT1LBDCV6v51COCRvV vE5nCtQlGBO26SdJiMV4+Q/LynPHfMhwcglfN1TPBICZHwS82oNByYmkHSQLkebmi0Ca QEy4dhIWaWH8j3/A/VAckyDQv5qv5bX3sQixtxP9P1ivsFFxSEweURlXxZlkL7cZ88Of c00z9vU9YfH7+AHP2PmF4SpeU/iMsSmQfxvymCyXh1S8RqKNibDxClxhEfKYuxT9cy3d OaxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=hDlaFoN/vgLaR1Js8RiiLEfr/H7CHzu3cjWx3VGC15U=; b=de8vMraS1IDyG1FTfHyNxmureXrY/oUghh8gpn4fATDS63eF2XHDLtjCNLImX962iQ hzfYviaj1OJnvajZp2qU5vIWCVLeDohsh/G4MXKN3hpAX0ea0gpeJeTwhpBqtV5NULPJ o3C099ppY+jOvduxKp0H+NzKwjF2vzrqxdFKm7Z+n9zV1gG2p+oLzpx6dDHC4SNUXhnX /BC8JFTbwzPLibS5yN9BFS6rI5R6NgcI3I13dtJ243r22zngcSztqmpvo+TgXO6IaRqN sYNCfAzsEGOdJkX+lFg0Fq4xdYIn/XXbAABgBtrxei2GQk9KYBxslXoQ2Q1J0CPd6Zkl 6Y2w== X-Gm-Message-State: AEkooutAJEa68j8kVqYUfwL/s5I1phxWPlFsESLVsF5A9Z+P1C/8dNVJPDhP2xbntwTAdrP2eBwJC2R4h9m3ig== X-Received: by 10.55.158.203 with SMTP id h194mr4750113qke.51.1469887320241; Sat, 30 Jul 2016 07:02:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.189.135 with HTTP; Sat, 30 Jul 2016 07:01:59 -0700 (PDT) In-Reply-To: References: <933449d0-90c2-0d7a-cb80-a171289d8286@texthtml.net> <20160724145557.D52C31A80BBD@dd1730.kasserver.com> <6cfac572-9982-87f8-5a55-9213d978cde9@gmx.de> <20160724162103.BC5741A83512@dd1730.kasserver.com> <20160724172131.675AC1A800B0@dd1730.kasserver.com> <9bc0db6a-fa19-5f87-0e82-3702dcb34254@gmx.de> <20160727224510.7B80C1A80358@dd1730.kasserver.com> <20160728093917.5DCC51A82392@dd1730.kasserver.com> Date: Sat, 30 Jul 2016 19:01:59 +0500 Message-ID: Cc: PHP internals Content-Type: multipart/alternative; boundary=94eb2c05d3c8953dbe0538dacf33 Subject: Re: [PHP-DEV] [RFC] New operator for context-dependent escaping From: michael.vostrikov@gmail.com (Michael Vostrikov) --94eb2c05d3c8953dbe0538dacf33 Content-Type: text/plain; charset=UTF-8 > This new tag will not simply replace because you still need to output HTML sometimes. This can be done with e.g. "". > What you've coined "context" is really just a pseudo function-call - it does not automatically establish context Yes. Because the language cannot know the task, it cannot know exact set of escapers which are needed for a ceratin value. But it can provide tools to do this. Automatic context determination is not the aim of this RFC. > specifying the right "context" requires the exact same choice and diligence as selecting the right function Yes. The aim is to call escaping function automatically and to make some context default, so that the user will not take care about calling it everywhere manually. > it somewhat changes the problem, but doesn't actually solve the problem Sorry, I don't know what problem are you talking about, the problem which this operator solves is described in the RFC. --94eb2c05d3c8953dbe0538dacf33--