Re: SV: [SMARTY] html_options problem
| From: | messju mohr | Date: | Tue, 25 Mar 2003 15:46:52 +0000 |
| Subject: | Re: SV: [SMARTY] html_options problem | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8897@lists.php.net to get a copy of this message | ||
On Tue, Mar 25, 2003 at 04:39:29PM +0100, Paolo Nesti Poggi wrote:
> > Fra: Raul Carvalho [mailto:raul.carvalho@prisma.pt]
> > After printing to the browser, I get all characters mangled...
> > i.e. the character "á" should be presented to browser like
> > "á" but the ampersand itself is being encoded... and the
> > browser displays "á" instead!
> >
> > Am I doing something wrong?
> >
>
>
> > > smarty_function_escape_special_chars() is designed to only escape
> > > characters, that not have already been escaped.
> > >
>
> In relation to the above, have you tried it with the most recent version of
> Smarty, because the ampersand fix has been added rather recently if I
> remember correctly.
indeed. i can reproduce the above with Smarty-2.4.2 but not with
Smarty-2.5.0-RC1 . i forgot that function.html_options.php is longer
available in smarty than 2.5.0. i mixed this up with
shared.escape_special_chars.php which is rather new.