Re: [PHP Template] A suggestion

[email protected] (Monte Ohrt) Wed, 01 Mar 2000 10:20:08 -0600
Newsgroups php.template
Organization ispi
Message-ID <[email protected]>
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