Xss::$htmlTags
Same name in other branches
- 9 core/lib/Drupal/Component/Utility/Xss.php \Drupal\Component\Utility\Xss::htmlTags
- 10 core/lib/Drupal/Component/Utility/Xss.php \Drupal\Component\Utility\Xss::htmlTags
- 11.x core/lib/Drupal/Component/Utility/Xss.php \Drupal\Component\Utility\Xss::htmlTags
The default list of HTML tags allowed by filter().
Type: array
See also
\Drupal\Component\Utility\Xss::filter()
File
-
core/
lib/ Drupal/ Component/ Utility/ Xss.php, line 28
Class
- Xss
- Provides helper to filter for cross-site scripting.
Namespace
Drupal\Component\UtilityCode
protected static $htmlTags = [
'a',
'em',
'strong',
'cite',
'blockquote',
'code',
'ul',
'ol',
'li',
'dl',
'dt',
'dd',
];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.