trait 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.

© 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!Core!Field!AllowedTagsXssTrait.php/trait/AllowedTagsXssTrait/8.1.x