Re: [PHP Template] A suggestion
[email protected] (Dan Libby) Mon, 28 Feb 2000 21:33:32 -0800
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
html escaping should work for XML also, so long as it uses character entities. For plain ascii, why would they want to escape? Anyway, the attribute should probably be called "htmlescape" instead of escape. Actually, more useful would be escape="html|xml|url", and equivalent unescape="html|xml|url". There are probably some other escape types that would be good too. thinking as I type... -dan > > This brings up a good point. Right now we have "escape" attribute which > says whether to HTML escape the output of a variable. Well, what if it's > used in XMl or plain e-mail? What do we need to escape then? > > > Hope I got most of the stuff above right. Feel free to correct me if I did > > not understand some point in the PHP-TE description (hey! new acronym ;) > > Yes, you got everything right. I'll add your drawing and paragraph to > the spec. > > -Andrei > > -- > PHP Template Engine Mailing List > Current engine specification can be found at: > http://va.php.net/~andrei/tpl-engine-spec.txt > To unsubscribe, e-mail: [email protected]