correct handling of htmls