function check_plain


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 check_plain($text)
cle7 check_plain($text)
elmsmedia7 check_plain($text)
icor7 check_plain($text)
meedjum_blog7 check_plain($text)
mooc7 check_plain($text)

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.


$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

694 calls to check_plain()
accessibility_test_render in sites/all/modules/ulmus/accessibility/accessibility.module
adaptivetheme_html_head_alter in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
adaptivetheme_links in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
Returns HTML for a set of links.
adaptivetheme_preprocess_block in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
Preprocess variables for block.tpl.php
adaptivetheme_preprocess_html in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
Preprocess variables for html.tpl.php

... See full list

35 string references to 'check_plain'
accessibility_reporting_report in sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/accessibility_reporting.module
Report callback. Stores posted data to accessibility_reporting table.
adaptivetheme_form_search_form_alter in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
hook_form_FORM_ID_alter() Modify the Advanced Search Form
aggregator_form_opml in modules/aggregator/
Form constructor for importing feeds from OPML.
alpha_theme_settings_general in sites/all/themes/ulmus/omega/alpha/includes/
block_admin_configure in modules/block/
Form constructor for the block configuration form.

... See full list


includes/, line 1565
Functions that need to be loaded on every Drupal request.


function check_plain($text) {
  return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');