Skip navigation
Help

drupal_placeholder

7 bootstrap.inc drupal_placeholder($text)

Formats text for emphasized display in a placeholder inside a sentence. Used automatically by t().

Parameters

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

Return value

The formatted text (html).

6 calls to drupal_placeholder()

File

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

Code

function drupal_placeholder($text) {
  return '<em class="placeholder">' . check_plain($text) . '</em>';
}