protected static function Standard::needsRemoval in Drupal 9
Same name and namespace in other branches
- 8 core/modules/editor/src/EditorXssFilter/Standard.php \Drupal\editor\EditorXssFilter\Standard::needsRemoval()
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 166
Class
- Standard
- Defines the standard text editor XSS filter.
Namespace
Drupal\editor\EditorXssFilterCode
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);
}