ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacques Le Roux <jacques.le.r...@les7arts.com>
Subject Re: FTL and HTML
Date Wed, 25 May 2016 05:44:24 GMT
Hi Skip,

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

Jacques

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 error.
> 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 escaping
> it?
>
> I am loathe to install 2.3.42 because that would require a complete beta
> test on a working system.
>
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message