tweaked html cleaning