function check_plain

8.x bootstrap.inc check_plain($text)

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

See also

\Drupal\Component\Utility\String::checkPlain()

drupal_validate_utf8()

Related topics

102 calls to check_plain()
action_views_form_substitutions in drupal/core/modules/action/action.views_execution.inc
Implements hook_views_form_substitutions().
Attribute::__toString in drupal/core/lib/Drupal/Core/Template/Attribute.php
Implements the magic __toString() method.
AttributeBoolean::__toString in drupal/core/lib/Drupal/Core/Template/AttributeBoolean.php
Implements the magic __toString() method.
bartik_process_maintenance_page in drupal/core/themes/bartik/bartik.theme
Implements hook_process_HOOK() for maintenance-page.html.twig.
bartik_process_page in drupal/core/themes/bartik/bartik.theme
Implements hook_process_HOOK() for page.html.twig.

... See full list

4 string references to 'check_plain'
menu_test_menu in drupal/core/modules/system/tests/modules/menu_test/menu_test.module
Implements hook_menu().
node_form_search_form_alter in drupal/core/modules/node/node.module
Implements hook_form_FORM_ID_alter().
views_process_check_options in drupal/core/modules/views/views.module
#process callback to see if we need to check_plain() the options.
_menu_item_localize in drupal/core/includes/menu.inc
Localizes the router item title using t() or another callback.

File

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

Code

function check_plain($text) {
  return String::checkPlain($text);
}