Same name and namespace in other branches
  1. 8.9.x core/includes/bootstrap.inc \drupal_placeholder()

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).

6 calls to drupal_placeholder()
filter_admin_overview in modules/filter/filter.admin.inc
Page callback: Form constructor for a form to list and reorder text formats.
filter_permission in modules/filter/filter.module
Implements hook_permission().
format_string in includes/bootstrap.inc
Formats a string for HTML display by replacing variable placeholders.
node_revision_overview in modules/node/node.pages.inc
Generates an overview table of older revisions of a node.
profile_browse in modules/profile/profile.pages.inc
Menu callback; display a list of user information.

... See full list

File

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

Code

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