Contains deprecated functionality related to sanitization of markup.
Will be removed before Drupal 9.0.0. Use the appropriate sanitization functions or the theme and render systems so that the output can can be themed, escaped, and altered properly.
TwigExtension::escapeFilter()
Name | Modifiers | Type | Description |
---|---|---|---|
SafeMarkup::checkPlain Deprecated | public static | function | Encodes special characters in a plain-text string for display as HTML. |
SafeMarkup::format Deprecated | public static | function | Formats a string for HTML display by replacing variable placeholders. |
SafeMarkup::isSafe Deprecated | public static | function | Checks if a string is safe to output. |
© 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!SafeMarkup.php/class/SafeMarkup/8.1.x