Re: freemarker HTML escaping of ' char
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Thursday, March 19, 2009, 2:44:13 PM, aldana wrote:
>
> sorry, i meant to say: ?replace("'","'")
>
> aldana wrote:
>>
>> why is the ' char not escaped by the ?html function? Working with
>> javascript (where I introduce string with ' to get escaping of " for free)
>> things get difficult.
>>
>> Is there another another way as using ?replace("'",') inside
>> freemarker?
Quite illogically anyway, but ?xhtml happens to do just that:
http://freemarker.org/docs/ref_builtins_string.html#ref_builtin_xhtml
But why do you need to escape "'"? If you always use "..." for
attribute values, you shouldn't need that.
> -----
> manuel aldana
> aldana((at))gmx.de
> software-engineering blog: http://www.aldana-online.de
--
Best regards,
Daniel Dekany
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com