Hi everyone,
First of all I don't know if this topic is a
JSP issue or a
Struts issue, so if this topic is at the wrong place, please move it to the right one.
I'm trying to make a forum in
java Struts 2. But when I create a post/topic with javascript TextEditors they put HTML tags in the
string and when I return it from the database to the JSP with
<s:property value='text'/> the tags don't disappear.
So I read that I should convert the HTML string to 'text'. To do it I used StringEscapeUtils.
Ex.:
[INPUT]:
[OUTPUT with ${text}]:
[OUTPUT with <s:property value='text'/>]:
What should I do to the text turn into HTML?
Obs.: Sorry for my bad english.