Contains deprecated functionality related to sanitization of markup.
Hierarchy
- class \Drupal\Component\Utility\SafeMarkup
Deprecated
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.
See also
TwigExtension::escapeFilter()
File
- core/lib/Drupal/Component/Utility/SafeMarkup.php, line 21
Namespace
Drupal\Component\Utility
Members
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. |
Please login to continue.