For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > May 2004 > Re: [SMARTY] html_options doesn't escape specialcharacters









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] html_options doesn't escape specialcharacters
Messju Mohr

2004-05-14, 6:32 am

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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com