Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

handling html

 
Maharaj thak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I am using fck editor plugin.If some body enters some info like

<p>This is my first time here</p>

I want to actually display it a s a paragraph.But if I do something like

texttodisplay.encodeAsHTML()
It shows me
<p>This is my first time here</p>

how can i avoid this

Regards
Mauji Thak
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
don't call encodeAsHTML() on the property.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic