0

Hi, on our webpage, we display text taken from the DB, that includes html character codes like <br/>.

Obviously, this display as <br/> on the page, but we'd like to actually see the newline. Its probably stored like this in the DB because we did an escape on the text when the user entered it.

Does anyone know of a way to 'unescape' or convert back to the original html tags? Or is string replace the best bet?

Thanks!

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by maizer1
1

Sorry, problem solved, we were storing as html tags all along, just needed to set escape to false.

Votes + Comments
Thanx for sharing solution
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.