Documentation

HtmlHelper
in package

Represents a utility class for working with HTML string

Table of Contents

Methods

Decode()  : XmlNode
Decodes an XML string and returns an XmlNode object.
Encode()  : string
Encodes an array or object to a HTML string representation.

Methods

Decode()

Decodes an XML string and returns an XmlNode object.

public Decode(string $xmlString) : XmlNode
Parameters
$xmlString : string

The XML string to be decoded.

Return values
XmlNode

The parsed XML data as an XmlNode object.

Encode()

Encodes an array or object to a HTML string representation.

public static Encode(array<string|int, mixed>|object $object[, string $tag = 'object' ]) : string
Parameters
$object : array<string|int, mixed>|object

The input data (array or object) to be encoded.

$tag : string = 'object'

The tag to use for the encoded data (optional, default is 'object').

Return values
string

The encoded data as a string.


        
On this page

Search results