Escapes HTML syntax characters to HTML entities for display in markup.
This class can be used to provide theme engine-like late escaping functionality.
Hierarchy
- class \Drupal\Component\Render\HtmlEscapedText implements \Countable, MarkupInterface
Related topics
- Sanitization functions
- Functions to sanitize values.
File
- core/lib/Drupal/Component/Render/HtmlEscapedText.php, line 16
Namespace
Drupal\Component\Render
Members
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 |
Please login to continue.