Same name and namespace in other branches
9.1.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
9.0.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
9.2.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
9.3.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
8.9.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
8.0.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
8.1.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
8.3.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
8.4.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
8.5.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
8.6.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
8.7.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
8.8.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html::decodeEntities()
Decodes all HTML entities including numerical ones to regular UTF-8 bytes.
Double-escaped entities will only be decoded once ("<" becomes
"<", not "
previous sanitization efforts (<script> will become
This method is not the opposite of Html::escape(). For example, this method
will convert "é" to "é", whereas Html::escape() will not convert "é"
to "é".
Parameters
string $text:
The text to decode entities in.
Return value
string
The input $text, with all HTML entities decoded once.
See also
34 calls to Html::decodeEntities()
BigPipe::sendPlaceholders in core/modules/big_pipe/src/Render/BigPipe.php
Sends BigPipe placeholders' replacements as embedded AJAX responses.
Asserts expected BigPipe placeholders are present and replaced.
Builds an updated entity object based upon the submitted form values.
ContextualLinks::render in core/modules/contextual/src/Plugin/views/field/ContextualLinks.php
Displays a listing of database log messages.
File
core/lib/Drupal/Component/Utility/Html.php, line 382
Class
Provides DOMDocument helpers for parsing and serializing HTML strings.
Namespace
Drupal\Component\Utility
Code
public static function decodeEntities($text) {
return $text, ENT_QUOTES, 'UTF-8');
}
611

被折叠的 条评论
为什么被折叠?



