Hi,
Anyone have any ideas what regular expressions to use to strip an HTML document and format it so that when it is inserted into a dynamic text field it has line breaks / formatting etc.
Eg: Atm I have two regulard expressions, one that strips white space beween tags and one that strips tags… But then there is no line breaks between paragraphs etc.
What I need is to take the <body> of the HTML document, replace <br />, <br>, <p> tags with
replace <li> tags with etc Remove all tags (including images etc) and basically just end up with the formatted text of that HTML.
Cheers,
Ryan