I was going to use the list at http://www.ascii.cl/htmlcodes.htm, is this the full set?
Also, what is the best way to go about this? I was just going to do loads of str_replace, but I realize that in this situation it may be flawed in that it will replace characters in the replacements.
If someone out there can save me from a lot of wasted time then please do