function check_plain

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

See also

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

drupal_validate_utf8()

Related topics

255 calls to check_plain()
action_views_form_substitutions in drupal/core/modules/action/action.views_execution.inc
Implements hook_views_form_substitutions().
aggregator_categorize_items in drupal/core/modules/aggregator/aggregator.pages.inc
Form constructor to build the page list form.
ArgumentPluginBase::summaryName in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Provides the name to use for the summary. By default this is just the name field.
ArgumentPluginBase::title in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Get the title this argument will assign the view, given the argument.
Attachment::optionsSummary in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Attachment.php
Provide the summary for attachment options in the views UI.

... See full list

14 string references to 'check_plain'
AccountFormController::form in drupal/core/modules/user/lib/Drupal/user/AccountFormController.php
Overrides Drupal\Core\Entity\EntityFormController::form().
BlockFormController::form in drupal/core/modules/block/lib/Drupal/block/BlockFormController.php
Overrides \Drupal\Core\Entity\EntityFormController::form().
FilterPluginBase::buildExposeForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
Options form subform for exposed filter options.
filter_admin_format_form in drupal/core/modules/filter/filter.admin.inc
Form constructor for the text format add/edit form.
filter_admin_overview in drupal/core/modules/filter/filter.admin.inc
Page callback: Form constructor for a form to list and reorder text formats.

... See full list

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);
}