public static function filter($html, array $config = null, $spec = null) {
        require_once __DIR__.'/htmLawed/htmLawed.php';

        if ($config === null) {
            $config = self::$defaultConfig;
        }

        if (isset($config['spec']) && !$spec) {
            $spec = $config['spec'];
        }

        if ($spec === null) {
            $spec = static::$defaultSpec;
        }

        return htmLawed($html, $config, $spec);
    }
public static function filter($html, array $config = null, $spec = null) {
        require_once __DIR__.'/htmLawed/htmLawed.php';

        if ($config === null) {
            $config = self::$defaultConfig;
        }

        if (isset($config['spec']) && !$spec) {
            $spec = $config['spec'];
        }

        if ($spec === null) {
            $spec = static::$defaultSpec;
        }

        return htmLawed($html, $config, $spec);
    }
public static function filter ( $ html , array $ config = null , $ spec = null ) { require_once __DIR__ . '/htmLawed/htmLawed.php' ; if ( $ config === null ) { $ config = self :: $ defaultConfig ; } if ( isset ( $ config [ 'spec' ] ) && ! $ spec ) { $ spec = $ config [ 'spec' ] ; } if ( $ spec === null ) { $ spec = static :: $ defaultSpec ; } return htmLawed ( $ html , $ config , $ spec ) ; }
Filters a string of html with the htmLawed library.

@param string $html The text to filter.
@param array|null $config Config settings for the array.
@param string|array|null $spec A specification to further limit the allowed attribute values in the html.
@return string Returns the filtered html.
@see http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/htmLawed_README.htm
Filters a string of html with the htmLawed library .