final class XmlHelpers

internal  
 

Runtime utilities for handling XML.

Constants

private ReNameStart

private ReName

Methods

static string|null
formatAttribute(string $name, mixed $value)

Formats XML attribute value based on value type.

static string
validateTagChange(mixed $name, string|null $origName = null)

Checks that the HTML tag name can be changed.

Details

at line 31
static string|null formatAttribute(string $name, mixed $value)

Formats XML attribute value based on value type.

Parameters

string $name
mixed $value

Return Value

string|null

at line 65
static string validateTagChange(mixed $name, string|null $origName = null)

Checks that the HTML tag name can be changed.

Parameters

mixed $name
string|null $origName

Return Value

string