W3cubDocs

/Drupal 8

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

© 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