SafeMarkup

Contains deprecated functionality related to sanitization of markup.

Hierarchy

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()

twig_render_template()

Sanitization functions

Render API overview

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.
doc_Drupal
2016-10-29 09:39:31
Comments
Leave a Comment

Please login to continue.