7 bootstrap.inc | check_plain($text) |
4.6 bootstrap.inc | check_plain($text) |
4.7 bootstrap.inc | check_plain($text) |
5 bootstrap.inc | check_plain($text) |
6 bootstrap.inc | check_plain($text) |
8 bootstrap.inc | check_plain($text) |
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.
132 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.
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) : '';
}