final class HtmlHelpers

internal  
 

Runtime utilities for handling HTML.

Constants

private BooleanAttributes

private SpaceSeparatedAttributes

Methods

static string
escapeText($s)

Escapes string for use inside HTML text.

static string
escapeAttr($s, bool $double = true)

Escapes string for use inside HTML attribute value.

static string
escapeTag($s)

Escapes string for use inside HTML tag.

static string
escapeComment($s)

Escapes string for use inside HTML/XML comments.

static string
escapeRawHtml($s)

Escapes HTML for usage in