Unwanted escaping in Freemarker or ofbiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Unwanted escaping in Freemarker or ofbiz

lns_lns
Hi,
I have a little problem:
if I generate html data in beanshell, put it to the context and display it with freemarker something escapes the tags...
I'm not sure where this happens, all I know for sure is that it's not Beanshell, but it would make almost no sense if Freemarker escaped the string, since there's a special directive for that...
Anyway, I'm using ofbiz 9.04, is it possible ofbiz escapes "<",">","=" and "\"", before giving the data to the template?
If so, is there a way to turn it off?

Thanks in advance!
Regards Lukas
Reply | Threaded
Open this post in threaded view
|

Re: Unwanted escaping in Freemarker or ofbiz

Jacques Le Roux
Administrator
Did you try html.encode.on in general.properties?
Did you read this thread? http://markmail.org/message/hkjljbqgm7auqvgf

Jacques

From: "lns_lns" <[hidden email]>

>
> Hi,
> I have a little problem:
> if I generate html data in beanshell, put it to the context and display it
> with freemarker something escapes the tags...
> I'm not sure where this happens, all I know for sure is that it's not
> Beanshell, but it would make almost no sense if Freemarker escaped the
> string, since there's a special directive for that...
> Anyway, I'm using ofbiz 9.04, is it possible ofbiz escapes "<",">","=" and
> "\"", before giving the data to the template?
> If so, is there a way to turn it off?
>
> Thanks in advance!
> Regards Lukas
>
> --
> View this message in context: http://www.nabble.com/Unwanted-escaping-in-Freemarker-or-ofbiz-tp23644850p23644850.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: Unwanted escaping in Freemarker or ofbiz

lns_lns
Hi Jacques,
thank you so much!
I haven't seen the thread you mentioned, but it gave me my solution, I used "StringUtil.wrapString"...
Works like a charm.

Regards
Lukas

jacques.le.roux wrote
Did you try html.encode.on in general.properties?
Did you read this thread? http://markmail.org/message/hkjljbqgm7auqvgf

Jacques

From: "lns_lns" <lns@gmx.ch>
>
> Hi,
> I have a little problem:
> if I generate html data in beanshell, put it to the context and display it
> with freemarker something escapes the tags...
> I'm not sure where this happens, all I know for sure is that it's not
> Beanshell, but it would make almost no sense if Freemarker escaped the
> string, since there's a special directive for that...
> Anyway, I'm using ofbiz 9.04, is it possible ofbiz escapes "<",">","=" and
> "\"", before giving the data to the template?
> If so, is there a way to turn it off?
>
> Thanks in advance!
> Regards Lukas
>
> --
> View this message in context: http://www.nabble.com/Unwanted-escaping-in-Freemarker-or-ofbiz-tp23644850p23644850.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>