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!

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

commented: Thanx for sharing solution +16
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.