Forum: Ruby on Rails hide html tags and show correct format

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
C3bdd57da4de3560baac7b267eb32012?d=identicon&s=25 surfman (Guest)
on 2007-06-07 21:28
I am using dojo widget to accept data users input. it will add some html
tag into the text saved. like, when a user press enter to create a new
line, it will create a tag < br >, when I tried showing the saved text
to users, it will show html tags like, < br > as well. I want to hide
those html tags, but show correct format using these hidden html tags,
how may I do that? thanks.
This topic is locked and can not be replied to.