X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FComponent%2FUtility%2FSafeMarkup.php;h=b2d00a3090154c6e4b0637b689672f4afda2a02e;hp=be35d96b4232a0e45ff76d713c7313557035006d;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a diff --git a/web/core/lib/Drupal/Component/Utility/SafeMarkup.php b/web/core/lib/Drupal/Component/Utility/SafeMarkup.php index be35d96b4..b2d00a309 100644 --- a/web/core/lib/Drupal/Component/Utility/SafeMarkup.php +++ b/web/core/lib/Drupal/Component/Utility/SafeMarkup.php @@ -13,6 +13,8 @@ use Drupal\Component\Render\MarkupInterface; * @link sanitization sanitization functions @endlink or the @link theme_render theme and render systems @endlink * so that the output can can be themed, escaped, and altered properly. * + * @see https://www.drupal.org/node/2549395 + * * @see TwigExtension::escapeFilter() * @see twig_render_template() * @see sanitization @@ -34,6 +36,8 @@ class SafeMarkup { * @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. * Instead, you should just check if a variable is an instance of * \Drupal\Component\Render\MarkupInterface. + * + * @see https://www.drupal.org/node/2549395 */ public static function isSafe($string, $strategy = 'html') { return $string instanceof MarkupInterface; @@ -58,6 +62,7 @@ class SafeMarkup { * possible, \Drupal\Component\Utility\Html::escape() can be used in places * where explicit escaping is needed. * + * @see https://www.drupal.org/node/2549395 * @see drupal_validate_utf8() */ public static function checkPlain($text) { @@ -84,6 +89,8 @@ class SafeMarkup { * * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. * Use \Drupal\Component\Render\FormattableMarkup. + * + * @see https://www.drupal.org/node/2549395 */ public static function format($string, array $args) { return new FormattableMarkup($string, $args);