/** * Method to clean content and return the result * If an error occurs, an exception is thrown * @param string $content * @return string */ public static function staticClean($content) { $cleaner = new self($content); $cleaner->clean(); return $cleaner->retrieveXml(); }