ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Skip" <s...@thedevers.org>
Subject RE: FTL and HTML
Date Wed, 25 May 2016 17:41:47 GMT
Thanks Jacques.  That worked a charm.

Thanks so much.


-----Original Message-----
From: Jacques Le Roux [mailto:jacques.le.roux@les7arts.com]
Sent: Tuesday, May 24, 2016 10:44 PM
To: user@ofbiz.apache.org
Subject: Re: FTL and HTML

Hi Skip,

Did you try ${StringUtil.wrapString(helpDesc)} ?


Le 25/05/2016 à 01:35, Skip a écrit :
> I have this bit of ftl in an ftl file:
> <div class="tabletext" > ${helpDesc} </div>
> helpDesc contains a string of help text and sometimes has some html in it
> like "This is line 1<br>This is line2"
> This used to work fine a while ago, but now, ftl now outputs "This is line
> 1&lt;br&gt;This is line2"
> I have tried ${helpDesc?html}  ${helpDesc?string} and several others, but
> nothing seems to work.  I tried ${helpDesc?no_esc}, but got a compile
> I am using ftl 2.3.19 and no_esc was added sometime later.
> I also tried <#noescape></#noescape> but got the error "No <#escape>"
> Anyone have any idea how to get ftl to output the html code without
> it?
> I am loathe to install 2.3.42 because that would require a complete beta
> test on a working system.

View raw message