Hm, sounds reasonable. So, basically you created your own entities and parsed the HTML using those entities? It's the only thing that comes to my mind how to make it work properly. I should grab some formatted strings and play around with those in a playground. Never done something like that before.