Useful methods when dealing with displaying allowed tags.
Hierarchy
- trait \Drupal\Core\Field\AllowedTagsXssTrait
Deprecated
in Drupal 8.0.x, will be removed before Drupal 9.0.0. Use \Drupal\Core\Field\FieldFilteredMarkup instead.
See also
\Drupal\Core\Field\FieldFilteredMarkup
File
- core/lib/Drupal/Core/Field/AllowedTagsXssTrait.php, line 13
Namespace
Drupal\Core\Field
Members
Name | Modifiers | Type | Description |
---|---|---|---|
AllowedTagsXssTrait::allowedTags | public | function | Returns a list of tags allowed by AllowedTagsXssTrait::fieldFilterXss(). |
AllowedTagsXssTrait::displayAllowedTags | public | function | Returns a human-readable list of allowed tags for display in help texts. |
AllowedTagsXssTrait::fieldFilterXss | public | function | Filters an HTML string to prevent XSS vulnerabilities. |
Please login to continue.