954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to un-escape HTML character codes?

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

Obviously, this display as
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!

maizer1
Newbie Poster
2 posts since Aug 2011
Reputation Points: 26
Solved Threads: 0
 

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

maizer1
Newbie Poster
2 posts since Aug 2011
Reputation Points: 26
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You