Really ugly code to basic HTML->Rich text
Improved HTML parser code