src/Drupal/Component/Render/FormattableMarkup.php
protected static function placeholderEscape($value) {
    return SafeMarkup::isSafe($value) ? (string) $value : Html::escape($value);
  }
protected static function placeholderEscape($value) {
    return SafeMarkup::isSafe($value) ? (string) $value : Html::escape($value);
  }
protected static function placeholderEscape ( $ value ) { return SafeMarkup :: isSafe ( $ value ) ? ( string ) $ value : Html :: escape ( $ value ) ; }
Escapes a placeholder replacement value if needed.

@param string|\Drupal\Component\Render\MarkupInterface $value
A placeholder replacement value.

@return string
The properly escaped replacement value.
Escapes a placeholder replacement value if needed .