fix html conversions