AllowedTagsXssTrait

Useful methods when dealing with displaying allowed tags.

Hierarchy

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.
doc_Drupal
2016-10-29 08:44:21
Comments
Leave a Comment

Please login to continue.