Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67991 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54596 invoked from network); 28 Jun 2013 02:10:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2013 02:10:59 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.41 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.219.41 mail-oa0-f41.google.com Received: from [209.85.219.41] ([209.85.219.41:35947] helo=mail-oa0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/57-34034-2B0FCC15 for ; Thu, 27 Jun 2013 22:10:58 -0400 Received: by mail-oa0-f41.google.com with SMTP id n10so1727192oag.14 for ; Thu, 27 Jun 2013 19:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tDTZLL8QV5ERchEA4GRwgLlPQNvAVFXd6UQdDcXPXcI=; b=iCJj64Jih8511ePMJSog+XxneTrcYsl/BYN6SM/68GKKGxDGhW2MepuJFFf6Xe235m +MVMbzQR1U61PVKO23gCULEvAFowGRvdocBEXvaN4LfHku4L7xUxqKDFY0YnQFrYODzu avCagFR6XfMHAtDUDFedUe8nEz2b8qaauUoay7YkSnmAlYbD8EentUITQ9HXPBA5Eq48 8UMAHQYFhYW2pDKnoSARJq+zsdLwl+rN0QpSToXxuQsJiLPayeLjMcndwXlAX7/FwFwj Bzvzgys8YvEKZTuMEncMG6cHS+nnN400TKjpqOO20Vcn0IQjuG+5R86qGpQzGfAAHaF8 0KEg== MIME-Version: 1.0 X-Received: by 10.182.66.97 with SMTP id e1mr5450624obt.66.1372385456048; Thu, 27 Jun 2013 19:10:56 -0700 (PDT) Received: by 10.182.65.102 with HTTP; Thu, 27 Jun 2013 19:10:55 -0700 (PDT) In-Reply-To: References: Date: Thu, 27 Jun 2013 19:10:55 -0700 Message-ID: To: Yasuo Ohgaki Cc: PHP internals list Content-Type: multipart/alternative; boundary=e89a8fb1f5229a4ee304e02d63a0 Subject: Re: [PHP-DEV] ENT_ALL or similar option for htmlspecialchars[_decode]? From: kris.craig@gmail.com (Kris Craig) --e89a8fb1f5229a4ee304e02d63a0 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jun 27, 2013 at 6:43 PM, Yasuo Ohgaki wrote: > 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 :) > Would you be interested in co-authoring an RFC with me for this? --Kris --e89a8fb1f5229a4ee304e02d63a0--