This problem actually hit me recently.
So I was tasked with putting people's bios up on the web (asked for opinions in a different question), which I went with XML and just created elements based on what sections was going to be displayed.
Some people had formulas in their bio and when I was copying/pasting the formatting didn't copy over.
My question is that is there an easy way to parse out the formulas and format accordingly?
One idea I had was to just subscript the numbers, but I would have to implement bbcode tags to do this as there are numbers all over the place. Hmm, or I could detect if a number is to the right of a letter and subscript the number.
Some of the forumlas are like CoO3
I used PHP to parse the XML.
What are your opinions?