function drupal_placeholder

drupal_placeholder($text)

Formats text for emphasized display in a placeholder inside a sentence.

Used automatically by format_string().

Parameters

$text: The text to format (plain-text).

Return value

The formatted text (html).

File

includes/bootstrap.inc, line 3714
Functions that need to be loaded on every Drupal request.

Code

function drupal_placeholder($text) {
  return '<em class="placeholder">' . check_plain($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/includes!bootstrap.inc/function/drupal_placeholder/7.x