drupal_placeholder($text)
Formats text for emphasized display in a placeholder inside a sentence.
in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal\Component\Utility\SafeMarkup::format() or Twig's "placeholder" filter instead. Note this method should not be used to simply emphasize a string and therefore has few valid use-cases. Note also, that this method does not mark the string as safe.
\Drupal\Component\Utility\SafeMarkup::format()
function drupal_placeholder($text) { return '<em class="placeholder">' . Html::escape($text) . '</em>'; }
© 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!includes!bootstrap.inc/function/drupal_placeholder/8.1.x