mangle the html before stripping