protected static function 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 323
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)]); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Xss.php/function/Xss::needsRemoval/8.1.x