sanitize: remove doctype properly, add experimental workaround against unnecessary html elements in sanitized data