Freemarker

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

Freemarker

Zibfo
Greetings All,

 

I am trying to insert generated HTML string to Freemarker from groovy. It's
getting escaped somewhere and so shows up literally on the web page rather
than being interpreted  as HTML by the browser. I have tried the Freemarker
format/no format directives; no effect (or errors).

 

How does one pass generated HTML (or xml or svg) from groovy to context to
freemarker so that it interprets correctly on the browser?

 

Thanks a bunch,

 

Max Peak

Peak Cybernetics

 

Reply | Threaded
Open this post in threaded view
|

Re: Freemarker

Michael Brohl-3
Hi Max,

try ${StringUtil.wrapString(yourHTMLstring!)} in your Freemarker code.

Regards,

Michael


Am 13.06.17 um 00:26 schrieb Max Peak:

> Greetings All,
>
>  
>
> I am trying to insert generated HTML string to Freemarker from groovy. It's
> getting escaped somewhere and so shows up literally on the web page rather
> than being interpreted  as HTML by the browser. I have tried the Freemarker
> format/no format directives; no effect (or errors).
>
>  
>
> How does one pass generated HTML (or xml or svg) from groovy to context to
> freemarker so that it interprets correctly on the browser?
>
>  
>
> Thanks a bunch,
>
>  
>
> Max Peak
>
> Peak Cybernetics
>
>  
>
>


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Freemarker

Zibfo
Michael,

Perfect. Thanks.

Max

-----Original Message-----
From: Michael Brohl [mailto:[hidden email]]
Sent: Monday, June 12, 2017 3:57 PM
To: [hidden email]
Subject: Re: Freemarker

Hi Max,

try ${StringUtil.wrapString(yourHTMLstring!)} in your Freemarker code.

Regards,

Michael


Am 13.06.17 um 00:26 schrieb Max Peak:
> Greetings All,
>
>  
>
> I am trying to insert generated HTML string to Freemarker from groovy.
It's
> getting escaped somewhere and so shows up literally on the web page rather
> than being interpreted  as HTML by the browser. I have tried the
Freemarker

> format/no format directives; no effect (or errors).
>
>  
>
> How does one pass generated HTML (or xml or svg) from groovy to context to
> freemarker so that it interprets correctly on the browser?
>
>  
>
> Thanks a bunch,
>
>  
>
> Max Peak
>
> Peak Cybernetics
>
>  
>
>