• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display richtext html entered with tinymce in table

 
Armin Vetek
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using tinymce to input the message text. Tinymce is a rich text editor.
For example: The user enter a word Struts2 into a tinymce editor. Tinymce returns a message decorated with html p tag and a message is saved into the database as <p>Struts2</p>. Please nota a p tag added to the string.

Html tags are considered as a string when the value is retrieved from the database. <p>Struts2</p> is displayed in the table instead only Struts2.

I tried to use StringEscapeUtils but I could not find a solution.

I need some help...

Best regards,
Javanus

 
Johannes Geppert
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when using s:property try the escapeHtml attribute.



Johannes
 
Armin Vetek
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is it!

Thank you,
Javanus
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic