function Standard::needsRemoval

Same name in other branches
  1. 9 core/modules/editor/src/EditorXssFilter/Standard.php \Drupal\editor\EditorXssFilter\Standard::needsRemoval()
  2. 8.9.x core/modules/editor/src/EditorXssFilter/Standard.php \Drupal\editor\EditorXssFilter\Standard::needsRemoval()
  3. 10 core/modules/editor/src/EditorXssFilter/Standard.php \Drupal\editor\EditorXssFilter\Standard::needsRemoval()

Overrides Xss::needsRemoval

File

core/modules/editor/src/EditorXssFilter/Standard.php, line 134

Class

Standard
Defines the standard text editor XSS filter.

Namespace

Drupal\editor\EditorXssFilter

Code

protected static function needsRemoval(array $html_tags, $elem) {
    // This class uses a list of tags to remove instead of the normal list of
    // tags to allow.
    // @see static::filterXss()
    return !parent::needsRemoval($html_tags, $elem);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.