Re: [SMARTY] Possible issue with '&' - and & etc being converted to   and & etc
| From: | Monte Ohrt | Date: | Fri, 14 Feb 2003 15:29:11 +0000 |
| Subject: | Re: [SMARTY] Possible issue with '&' - and & etc being converted to   and & etc | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7763@lists.php.net to get a copy of this message | ||
A patch is committed to CVS to not escape already escaped entities.
Please give that a try.
Monte
On Fri, 2003-02-14 at 07:29, Tom Beddard wrote:
> I've just updated to v2.4.2 from v2.3.
> I have found that values passed through to smarty (like an array for use in
> html_options) has its values made 'xhtml-safe' by converting all '&' to
> & However, if the values are already safe (and use & and etc)
> then the '&' character is still converted to & thus changing the values
> to   or &
>
> I guess the code to make safe html should treat the & etc as a
> single entities, rather than just converting the '&' on its own.
>
> Cheers,
> Tom
--
Monte Ohrt <monte@ispi.net>