I am working on converting HTML document to plain text by striping and replacing all the HTML tags and succeed in doing so. But i have come across this situation where i need to handle the superscript. I have this HTML code :
11,500m²
(suppose there are sup tag shown above, but i don't know how to show them here) I need to convert it to plain text so that it will become just 11,500m². How can i do so? Thank you in advance.
As there are only a few superscript numbers in ASCII.
As there is no way in plain text to have most characters this solution will:
Find text like: Some TextOther
And output: Some Text^Other