I have the following richtext (from flex) that I need to covert to plain text and export this to excel. Although html can be exported to excel, the problem is, for bulleted list, it's trying to merged 2 column cells... and for paragraphs, it's merging multiple rows.
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#000000" LETTERSPACING="0" KERNING="0">Hello</FONT></P>
<TEXTFORMAT LEADING="2"><LI><FONT FACE="Verdana" SIZE="10" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B><I><U>Working</U></I></B></FONT></LI></TEXTFORMAT>
<TEXTFORMAT LEADING="2"><LI><FONT FACE="Verdana" SIZE="10" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B><I><U>numbers</U></I></B></FONT></LI></TEXTFORMAT>
I need it to be just plain text, if possible retaining the line space and some formatting like bold when i export to excel so the whole thing fits in inside one cell. This is how it looks like in html:
Hello
I tried replacing it with regex but it doesn't work. Please advise.