function check_plain
Same name and namespace in other branches
- 6.x drupal-6.x/includes/bootstrap.inc \check_plain()
Encodes special characters in a plain-text string for display as HTML.
Also validates strings as UTF-8 to prevent cross site scripting attacks on Internet Explorer 6.
Parameters
$text: The text to be checked or processed.
Return value
An HTML safe version of $text, or an empty string if $text is not valid UTF-8.
See also
Related topics
184 calls to check_plain()
- aggregator_block_view in drupal-7.x/
modules/ aggregator/ aggregator.module - Implements hook_block_view().
- aggregator_categorize_items in drupal-7.x/
modules/ aggregator/ aggregator.pages.inc - Form constructor to build the page list form.
- aggregator_form_feed in drupal-7.x/
modules/ aggregator/ aggregator.admin.inc - Form constructor for adding and editing feed sources.
- block_admin_display_form in drupal-7.x/
modules/ block/ block.admin.inc - Form constructor for the main block administration form.
- block_form_user_profile_form_alter in drupal-7.x/
modules/ block/ block.module - Implements hook_form_FORM_ID_alter() for user_profile_form().
12 string references to 'check_plain'
- aggregator_form_opml in drupal-7.x/
modules/ aggregator/ aggregator.admin.inc - Form constructor for importing feeds from OPML.
- block_admin_configure in drupal-7.x/
modules/ block/ block.admin.inc - Form constructor for the block configuration form.
- drupal-6.bare.database.php in drupal-7.x/
modules/ simpletest/ tests/ upgrade/ drupal-6.bare.database.php - Bare installation of Drupal 6.17, for test purposes.
- drupal-6.filled.database.php in drupal-7.x/
modules/ simpletest/ tests/ upgrade/ drupal-6.filled.database.php - Filled installation of Drupal 6.17, for test purposes.
- filter_admin_format_form in drupal-7.x/
modules/ filter/ filter.admin.inc - Form constructor for the text format add/edit form.
Archivo
- drupal-7.x/
includes/ bootstrap.inc, line 1564 - Functions that need to be loaded on every Drupal request.
Código
function check_plain($text) {
return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
}