Standard::needsRemoval

protected static Standard::needsRemoval($html_tags, $elem)

Whether this element needs to be removed altogether.

Parameters

$html_tags: The list of HTML tags.

$elem: The name of the HTML element.

Return value

bool TRUE if this element needs to be removed.

Overrides Xss::needsRemoval

File

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

Class

Standard
Defines the standard text editor XSS filter.

Namespace

Drupal\editor\EditorXssFilter

Code

protected static function needsRemoval($html_tags, $elem) {
  // See static::filterXss() about how this class uses blacklisting instead
  // of the normal whitelisting.
  return !parent::needsRemoval($html_tags, $elem);
}
doc_Drupal
2016-10-29 09:43:54
Comments
Leave a Comment

Please login to continue.