function decode_entities

Decodes all HTML entities (including numerical ones) to regular UTF-8 bytes.

Parameters

$text: The text to decode entities in.

Return value

The input $text, with all HTML entities decoded once.

See also

\Drupal\Component\Utility\String::decodeEntities().

24 calls to decode_entities()
CommentFormController::submit in drupal/core/modules/comment/lib/Drupal/comment/CommentFormController.php
Overrides Drupal\Core\Entity\EntityFormController::submit().
ContextualLinks::render in drupal/core/modules/contextual/lib/Drupal/contextual/Plugin/views/field/ContextualLinks.php
Render the contextual fields.
DisplayPluginBase::getArgumentsTokens in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Returns to tokens for arguments.
drupal_html_to_text in drupal/core/includes/mail.inc
Transforms an HTML string into plain text, preserving its structure.
EntityReferenceAutocomplete::getMatches in drupal/core/modules/entity_reference/lib/Drupal/entity_reference/EntityReferenceAutocomplete.php
Returns matched labels based on a given field, instance and search string.

... See full list

File

drupal/core/includes/unicode.inc, line 240
Provides Unicode-related conversions and operations.

Code

function decode_entities($text) {
  return String::decodeEntities($text);
}