drupal_placeholder

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部