src/Lib/Purifier.php
public static function clean($markup, $configName = 'default')
    {
        $_this = Purifier::getInstance();

        if (!isset($_this->_configs[$configName])) {
            throw new \InvalidArgumentException(sprintf('Invalid HtmlPurifier configuration "%s"!', $configName));
        }

        return $_this->getPurifierInstance($configName)->purify($markup);
    }
public static function clean($markup, $configName = 'default')
    {
        $_this = Purifier::getInstance();

        if (!isset($_this->_configs[$configName])) {
            throw new \InvalidArgumentException(sprintf('Invalid HtmlPurifier configuration "%s"!', $configName));
        }

        return $_this->getPurifierInstance($configName)->purify($markup);
    }
public static function clean ( $ markup , $ configName = 'default' ) { $ _this = Purifier :: getInstance ( ) ; if ( ! isset ( $ _this -> _configs [ $ configName ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid HtmlPurifier configuration "%s"!' , $ configName ) ) ; } return $ _this -> getPurifierInstance ( $ configName ) -> purify ( $ markup ) ; }
Cleans Markup using a given config

@param string $markup
@param string $configName
Cleans Markup using a given config