public static function html($value, array $options = array()) {
        $options = $options + array(
            'strip' => true,
            'whitelist' => ''
        );

        if ($options['strip']) {
            $value = strip_tags($value, $options['whitelist']);
        }

        return static::escape($value, $options);
    }
public static function html($value, array $options = array()) {
        $options = $options + array(
            'strip' => true,
            'whitelist' => ''
        );

        if ($options['strip']) {
            $value = strip_tags($value, $options['whitelist']);
        }

        return static::escape($value, $options);
    }
public static function html ( $ value , array $ options = array ( ) ) { $ options = $ options + array ( 'strip' => true , 'whitelist' => '' ) ; if ( $ options [ 'strip' ] ) { $ value = strip_tags ( $ value , $ options [ 'whitelist' ] ) ; } return static :: escape ( $ value , $ options ) ; }
Sanitize a string by removing xor escaping HTML characters and entities.

@param string $value
@param array $options {
@type bool $strip       Will remove HTML tags
@type string $whitelist List of tags to not strip
}
@return string
Sanitize a string by removing xor escaping HTML characters and entities .