Re: [SMARTY] html_options doesn't escape specialcharacters
| From: | messju mohr | Date: | Fri, 14 May 2004 09:21:06 +0000 |
| Subject: | Re: [SMARTY] html_options doesn't escape specialcharacters | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11388@lists.php.net to get a copy of this message | ||
On Thu, May 13, 2004 at 03:56:44PM +0300, David Förster wrote:
> Hello,
>
> the html_options function doesn't replace specialcharacters in labels or
> values like german umlauts with the appropriate escaped entities.
>
> I had a look at the source and found that the problem is the shared
> function escape_special_chars which uses htmlspecialchars instead of
> htmlentities.
>
> Is this a bug or the wanted behaviour?
i think this is wanted behaviour.
the relevant characters "<", ">" and "\"" are escaped.
umlauts and other special chars are fully valid in your (x)html when
you declare the correct charset in the httpd- and html-headers.
> - david