WPDev.one
Core Class

WP_HTML_Decoder

class WP_HTML_Decoder // Constructor: function Object() { [native code] }

HTML API: WP_HTML_Decoder class

Methods 6 methods

Method / Return Description
attribute_starts_with()
bool

Indicates if an attribute value starts with a given raw string value.

Parameters: $haystack: mixed, $search_text: mixed, $case_sensitivity: mixed
decode_text_node()
string

Returns a string containing the decoded value of a given HTML text node.

Parameters: $text: mixed
decode_attribute()
string

Returns a string containing the decoded value of a given HTML attribute.

Parameters: $text: mixed
decode()
string

Decodes a span of HTML text, depending on the context in which it's found.

Parameters: $context: mixed, $text: mixed
read_character_reference()
(string

Attempt to read a character reference at the given location in a given string,

Parameters: $context: mixed, $text: mixed, $at: mixed, $match_byte_length: mixed
code_point_to_utf8_bytes()
string

Encode a code point number into the UTF-8 encoding.

Parameters: $code_point: mixed

Class Information

Since Version
6.6.0
Source File
wp-includes/html-api/class-wp-html-decoder.php
Advertisement