diff --git a/core/lib/Drupal/Component/Utility/SafeMarkup.php b/core/lib/Drupal/Component/Utility/SafeMarkup.php index d32ac6d..7da361f 100644 --- a/core/lib/Drupal/Component/Utility/SafeMarkup.php +++ b/core/lib/Drupal/Component/Utility/SafeMarkup.php @@ -285,8 +285,8 @@ public static function placeholder($text) { /** * Replace all occurrences of the search string with the replacement string. * - * Functions identically to str_replace(), but marks the returned output as safe - * if all the inputs and the subject have also been marked as safe. + * Functions identically to str_replace(), but marks the returned output as + * safe if all the inputs and the subject have also been marked as safe. * * @param string|array $search * The value being searched for. An array may be used to designate multiple diff --git a/core/modules/contextual/src/Element/ContextualLinksPlaceholder.php b/core/modules/contextual/src/Element/ContextualLinksPlaceholder.php index 5c54ab9..a0c2739 100644 --- a/core/modules/contextual/src/Element/ContextualLinksPlaceholder.php +++ b/core/modules/contextual/src/Element/ContextualLinksPlaceholder.php @@ -48,9 +48,9 @@ public function getInfo() { * @see _contextual_links_to_id() */ public static function preRenderPlaceholder(array $element) { - // This markup is safe because the only arguments will be instances of + // This markup is safe because the arguments will always be instances of // \Drupal\Core\Template\AttributeString, which is passed through - // \Drupal\Component\Utility\SafeMarkup::checkPlain() before being output + // \Drupal\Component\Utility\SafeMarkup::checkPlain() before being output. $element['#markup'] = SafeMarkup::set(' $element['#id'])) . '>'); return $element; }