Xss::needsRemoval

protected static Xss::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.

File

core/lib/Drupal/Component/Utility/Xss.php, line 325

Class

Xss
Provides helper to filter for cross-site scripting.

Namespace

Drupal\Component\Utility

Code

protected static function needsRemoval($html_tags, $elem) {
  return !isset($html_tags[strtolower($elem)]);
}
doc_Drupal
2016-10-29 09:56:52
Comments
Leave a Comment

Please login to continue.