function check_plain in Drupal 4
Same name and namespace in other branches
- 5 includes/bootstrap.inc \check_plain()
- 6 includes/bootstrap.inc \check_plain()
- 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.
108 calls to check_plain()
- aggregator_block in modules/
aggregator.module - Implementation of hook_block().
- aggregator_form_feed in modules/
aggregator.module - Generate a form to add/edit feed sources.
- aggregator_page_categories in modules/
aggregator.module - Menu callback; displays all the categories used by the aggregator.
- aggregator_page_opml in modules/
aggregator.module - Menu callback; generates an OPML representation of all feeds.
- aggregator_page_sources in modules/
aggregator.module - Menu callback; displays all the feeds used by the aggregator.
2 string references to 'check_plain'
- locale_user in modules/
locale.module - Implementation of hook_user().
- _locale_string_seek_form in includes/
locale.inc - User interface for the string search screen
File
- includes/
bootstrap.inc, line 617 - Functions that need to be loaded on every Drupal request.
Code
function check_plain($text) {
return drupal_validate_utf8($text) ? htmlspecialchars($text, ENT_QUOTES) : '';
}