diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 26a75f6..27d9576 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -8,6 +8,7 @@ use Drupal\Component\Utility\Crypt; use Drupal\Component\Utility\Environment; use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Utility\String; use Drupal\Component\Utility\Unicode; use Drupal\Core\DrupalKernel; use Drupal\Core\Extension\ExtensionDiscovery; @@ -428,12 +429,12 @@ function t($string, array $args = array(), array $options = array()) { /** * Formats a string for HTML display by replacing variable placeholders. * - * @see \Drupal\Component\Utility\SafeMarkup::format() + * @see \Drupal\Component\Utility\String::format() * @see t() * @ingroup sanitization */ function format_string($string, array $args = array()) { - return SafeMarkup::format($string, $args); + return String::format($string, $args); } /** @@ -494,7 +495,7 @@ function watchdog_exception($type, Exception $exception, $message = NULL, $varia // Use a default value if $message is not set. if (empty($message)) { // The exception message is run through - // \Drupal\Component\Utility\SafeMarkup::checkPlain() by + // \Drupal\Component\Utility\String::checkPlain() by // \Drupal\Core\Utility\Error:decodeException(). $message = '%type: !message in %function (line %line of %file).'; } @@ -1021,10 +1022,10 @@ function drupal_static_reset($name = NULL) { /** * Formats text for emphasized display in a placeholder inside a sentence. * - * @see \Drupal\Component\Utility\SafeMarkup::placeholder() + * @see \Drupal\Component\Utility\String::placeholder() */ function drupal_placeholder($text) { - return SafeMarkup::placeholder($text); + return String::placeholder($text); } /** diff --git a/core/lib/Drupal/Component/Utility/Html.php b/core/lib/Drupal/Component/Utility/Html.php index 60b83df..4dd9d27 100644 --- a/core/lib/Drupal/Component/Utility/Html.php +++ b/core/lib/Drupal/Component/Utility/Html.php @@ -359,21 +359,4 @@ public static function escapeCdataElement(\DOMNode $node, $comment_start = '//', } } - /** - * Decodes all HTML entities including numerical ones to regular UTF-8 bytes. - * - * Double-escaped entities will only be decoded once ("&lt;" becomes - * "<", not "<"). Be careful when using this function, as it will revert - * previous sanitization efforts (<script> will become