removes style attributes from formatted input string