HtmlEscapedText::__construct

public HtmlEscapedText::__construct($string) Constructs an HtmlEscapedText object. Parameters $string: The string to escape. This value will be cast to a string. File core/lib/Drupal/Component/Render/HtmlEscapedText.php, line 31 Class HtmlEscapedText Escapes HTML syntax characters to HTML entities for display in markup. Namespace Drupal\Component\Render Code public function __construct($string) { $this->string = (string) $string; }

HtmlEscapedText::jsonSerialize

public HtmlEscapedText::jsonSerialize() File core/lib/Drupal/Component/Render/HtmlEscapedText.php, line 52 Class HtmlEscapedText Escapes HTML syntax characters to HTML entities for display in markup. Namespace Drupal\Component\Render Code public function jsonSerialize() { return $this->__toString(); }

HtmlEscapedText::count

public HtmlEscapedText::count() File core/lib/Drupal/Component/Render/HtmlEscapedText.php, line 45 Class HtmlEscapedText Escapes HTML syntax characters to HTML entities for display in markup. Namespace Drupal\Component\Render Code public function count() { return Unicode::strlen($this->string); }

HtmlEscapedText::$string

The string to escape. Type: string File core/lib/Drupal/Component/Render/HtmlEscapedText.php, line 23 Class HtmlEscapedText Escapes HTML syntax characters to HTML entities for display in markup. Namespace Drupal\Component\Render Code protected $string;

HtmlEscapedText

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::$stri

HtmlCommand::render

public HtmlCommand::render() Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides InsertCommand::render File core/lib/Drupal/Core/Ajax/HtmlCommand.php, line 24 Class HtmlCommand AJAX command for calling the jQuery html() method. Namespace Drupal\Core\Ajax Code public function render() { return array( 'command' => 'insert', 'method' => 'html', 'selector' => $this->selector, 'data' => $this->getRenderedContent(), 'settings' => $this

HtmlCommand

AJAX command for calling the jQuery html() method. The 'insert/html' command instructs the client to use jQuery's html() method to set the HTML content of each element matched by the given selector while leaving the outer tags intact. This command is implemented by Drupal.AjaxCommands.prototype.insert() defined in misc/ajax.js. Hierarchy class \Drupal\Core\Ajax\InsertCommand implements CommandInterface, CommandWithAttachedAssetsInterface uses CommandWithAttachedAssetsTraitclass \Drupal\Core\Aja

Html::transformRootRelativeUrlsToAbsolute

public static Html::transformRootRelativeUrlsToAbsolute($html, $scheme_and_host) Converts all root-relative URLs to absolute URLs. Does not change any existing protocol-relative or absolute URLs. Does not change other relative URLs because they would result in different absolute URLs depending on the current path. For example: when the same content containing such a relative URL (for example 'image.png'), is served from its canonical URL (for example 'http://example.com/some-article') or from a

Html::setIsAjax

public static Html::setIsAjax($is_ajax) Sets if this request is an Ajax request. Parameters bool $is_ajax: TRUE if this request is an Ajax request, FALSE otherwise. File core/lib/Drupal/Component/Utility/Html.php, line 136 Class Html Provides DOMDocument helpers for parsing and serializing HTML strings. Namespace Drupal\Component\Utility Code public static function setIsAjax($is_ajax) { static::$isAjax = $is_ajax; }

Html::serialize

public static Html::serialize(\DOMDocument $document) Converts the body of a \DOMDocument back to an HTML snippet. The function serializes the body part of a \DOMDocument back to an (X)HTML snippet. The resulting (X)HTML snippet will be properly formatted to be compatible with HTML user agents. Parameters \DOMDocument $document: A \DOMDocument object to serialize, only the tags below the first <body> node will be converted. Return value string A valid (X)HTML snippet, as a string. File