Re: [SMARTY-GENERAL] Escape modifier: patch
| From: | Raymond Penners | Date: | Wed, 03 Apr 2002 14:41:12 +0000 |
| Subject: | Re: [SMARTY-GENERAL] Escape modifier: patch | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3460@lists.php.net to get a copy of this message | ||
Tim Strehle wrote:
I'm not totally sure, but I think there's an issue when generating XML (instead of HTML) with Smarty. The "specialchars" are always understood by an XML parser, while "entities" may break the parser due to the entities not being automatically defined. Or maybe you can add an "xml" escape type with the old behaviour?IMHO, it would be wrong to use "html" escaping when generating XML. So, adding an "xml" escape as you suggest seems like the-right-thing-to-do(TM). Regards, Raymond.