You don't have to use the StringEscapeUtils class.

Just read the docs of the Insert component
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Insert.html

and use the raw parameter


Teofilus Maximillian wrote:
> Hi guys, I tried to use StringEscapeUtils.unescapeHtml, from hardcoded  
> in the java class, until I put in the .page file. I show my example...  
> probably you can help me to figure out
>
>
> import org.apache.commons.lang.StringEscapeUtils;
>
> public String getThreadBody(){
>
>         dCon="<strong>test</strong>";
>
>         String strUnEscapeHTML = StringEscapeUtils.unescapeHtml(dCon);
>
>         return strUnEscapeHTML;
>     }
>
>
> and also in the .page file I put :
>
> <component id = "threadBody" type="Insert">
> <binding name="value"  
> value="ognl:@[EMAIL PROTECTED](threadBody)"/>
> </component>
>
>
> but it is not working, the display still like "<strong>test</strong>"  
> not "test" in bold
>
> Thanks
>
> Teo
>   


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to