Escapes HTML syntax characters to HTML entities for display in markup.
This class can be used to provide theme engine-like late escaping functionality.
Name | Modifiers | Type | Description |
---|---|---|---|
HtmlEscapedText::$string | protected | property | The string to escape. |
HtmlEscapedText::count | public | function | |
HtmlEscapedText::jsonSerialize | public | function | |
HtmlEscapedText::__construct | public | function | Constructs an HtmlEscapedText object. |
HtmlEscapedText::__toString | public | function | Returns markup. Overrides MarkupInterface::__toString |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Render!HtmlEscapedText.php/class/HtmlEscapedText/8.1.x