better handling of html content