Re: [PHP Template] A suggestion
| From: | Monte Ohrt | Date: | Wed, 01 Mar 2000 16:20:08 +0000 |
| Subject: | Re: [PHP Template] A suggestion | ||
| References: | 1 2 3 4 5 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-284@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
>
> At 04:16 PM 2/29/00 -0800, Dan Libby wrote:
> >It is a common enough requirement that I think designers may need to do it
> on a
> >semi-regular basis. Further, it is a more general escaping mechanism than
> >html escape,
> >which doesn't escape newlines, tabs, etc that people often need escaped.
>
> So, how about:
>
> escape = html/url/none (or should it be 'no'?)
>
> I can't think of any other type of escaping.
>
> -Andrei
>
Sometimes I have the need to escape everything in octal or hexidecimal
:-)
Seriously, I think HTML and URL escapement is enough for a designer,
anything else can be done at the script level. Should we allow both "no"
or "none"? It shouldn't hurt, it allows a bit of flexibility, and I
doubt we'll ever need "no" or "none" for another purpose here.
Monte