protected static function Xss::needsRemoval in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Utility/Xss.php \Drupal\Component\Utility\Xss::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.
File
- lib/
Drupal/ Component/ Utility/ Xss.php, line 329 - Contains \Drupal\Component\Utility\Xss.
Class
- Xss
- Provides helper to filter for cross-site scripting.
Namespace
Drupal\Component\UtilityCode
protected static function needsRemoval($html_tags, $elem) {
return !isset($html_tags[strtolower($elem)]);
}