You are here

function check_plain in Drupal 5

Same name and namespace in other branches
  1. 4 includes/bootstrap.inc \check_plain()
  2. 6 includes/bootstrap.inc \check_plain()
  3. 7 includes/bootstrap.inc \check_plain()

Encode special characters in a plain-text string for display as HTML.

Uses drupal_validate_utf8 to prevent cross site scripting attacks on Internet Explorer 6.

127 calls to check_plain()
aggregator_block in modules/aggregator/aggregator.module
Implementation of hook_block().
aggregator_form_feed in modules/aggregator/aggregator.module
Generate a form to add/edit feed sources.
aggregator_page_categories in modules/aggregator/aggregator.module
Menu callback; displays all the categories used by the aggregator.
aggregator_page_list in modules/aggregator/aggregator.module
aggregator_page_opml in modules/aggregator/aggregator.module
Menu callback; generates an OPML representation of all feeds.

... See full list

3 string references to 'check_plain'
blogapi_admin_settings in modules/blogapi/blogapi.module
node_form_alter in modules/node/node.module
Implementation of hook_form_alter().
taxonomy_form_vocabulary in modules/taxonomy/taxonomy.module
Display form for adding and editing vocabularies.

File

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

Code

function check_plain($text) {
  return drupal_validate_utf8($text) ? htmlspecialchars($text, ENT_QUOTES) : '';
}