Strip HTML Entities and convert <br> Entity to \n
I am pulling info out of a database that has html entities. I need to convert <br> to \n and remove all other entities to be able to add content to an email body without the html.
12:00pm - Some & Text goes here <p><strong>TUESDAY - NOVEMBER 1</strong><br /><strong>12:00PM - 5:00PM</strong><br />
Julian, Thanks for the quick response. I couldn't quite get the solution to work. The entities needed to be converted to HTML first, then strip and replace.
You would do the following
Open in new window