Standard::getForbiddenTags

protected static Standard::getForbiddenTags($restrictions)

Get all forbidden tags from a restrictions data structure.

Parameters

array|false $restrictions: Restrictions as returned by FilterInterface::getHTMLRestrictions().

Return value

array An array of forbidden HTML tags.

See also

\Drupal\filter\Plugin\Filter\FilterInterface::getHTMLRestrictions()

File

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

Class

Standard
Defines the standard text editor XSS filter.

Namespace

Drupal\editor\EditorXssFilter

Code

protected static function getForbiddenTags($restrictions) {
  if ($restrictions === FALSE || !isset($restrictions['forbidden_tags'])) {
    return array();
  }
  else {
    return $restrictions['forbidden_tags'];
  }
}
doc_Drupal
2016-10-29 09:43:54
Comments
Leave a Comment

Please login to continue.