final class CharsetTag implements TagInterface (View source)

Renders an escaped character-set declaration when one is configured.

Methods

__construct(string|null $charset)

Initializes the optional character-set value.

string
render()

Renders the character-set declaration or suppresses it for empty content.

string

Details

__construct

__construct(string|null $charset)

Initializes the optional character-set value.

Parameters

string|null $charset

render

string render()

Renders the character-set declaration or suppresses it for empty content.

Return Value

string