Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67989 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50960 invoked from network); 28 Jun 2013 01:44:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2013 01:44:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.175 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.175 mail-lb0-f175.google.com Received: from [209.85.217.175] ([209.85.217.175:38206] helo=mail-lb0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/96-34034-F5AECC15 for ; Thu, 27 Jun 2013 21:44:01 -0400 Received: by mail-lb0-f175.google.com with SMTP id r10so745092lbi.20 for ; Thu, 27 Jun 2013 18:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=C+sRf63iTb3n7tl+WDNmLJVNmVib8ydWxT/VKh52qwU=; b=fizdYHsa2hQWjgYR/MmJnav3/PKTU7bta16RdjSf1+XTzH4sXdt3vDDT+eEHRgYSvM rjV9m6k16pvj98ykKRaFhKP7YaTXQF4t8n5CDDPvPAuEeRsJGczW3hzj4JiAeMvBhAmJ 88xqiSHydZrAn6fmZhF7iO6qJ35nF+L7Q2MjseJfElDMYN5wMap4Ol4QW/vTVNOC/kdx FijWMDya5RLrMiwHPntem+OaCjNbZiUzyzJn9P8sT7Ci5Po/6vBBD1tqAX2zK0FBpuD6 tZuY95qmh04c4PPH/o3BL20dCsweUjc1l77qBGqEcmnxkiGR8piF8K25GEnknIeNT8wX 7HbA== X-Received: by 10.112.58.135 with SMTP id r7mr5472917lbq.89.1372383836951; Thu, 27 Jun 2013 18:43:56 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.4.233 with HTTP; Thu, 27 Jun 2013 18:43:15 -0700 (PDT) In-Reply-To: References: Date: Fri, 28 Jun 2013 10:43:15 +0900 X-Google-Sender-Auth: DmdjKUPa08kVwJnBrFXl3ZGlRGw Message-ID: To: Kris Craig Cc: PHP internals list Content-Type: multipart/alternative; boundary=e89a8f8388cf18dacd04e02d03a2 Subject: Re: [PHP-DEV] ENT_ALL or similar option for htmlspecialchars[_decode]? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --e89a8f8388cf18dacd04e02d03a2 Content-Type: text/plain; charset=ISO-8859-1 Hi Kris, 2013/6/27 Kris Craig > Yeah I tried html_entity_decode already, but it just returned NULL. On > the same input string, htmlspecialchars_decode returned the input string > but with *some* special characters decoded; 10 and 13 ("\r\n", I think) > were left in their encoded state. I'm not sure why there wouldn't be an > option to decode all html special characters. > Not only HTML entities, we really needs to add several decoder/encoder to core. For instance, Javascript \uXXXX, HTML &#XX/&#XXXX, etc. I hope someone is working on it :) Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --e89a8f8388cf18dacd04e02d03a2--