class HtmlString implements Htmlable, Stringable

Properties

protected mixed $html

The HTML string.

Methods

__construct(mixed $html = '')

Create a new HTML string instance.

string
toHtml()

Get the HTML string.

bool
isEmpty()

Determine if the given HTML string is empty.

bool
isNotEmpty()

Determine if the given HTML string is not empty.

string
__toString()

Get the HTML string.

Details

at line 20
__construct(mixed $html = '')

Create a new HTML string instance.

Parameters

mixed $html

at line 28
string toHtml()

Get the HTML string.

Return Value

string

at line 36
bool isEmpty()

Determine if the given HTML string is empty.

Return Value

bool

at line 44
bool isNotEmpty()

Determine if the given HTML string is not empty.

Return Value

bool

at line 52
string __toString()

Get the HTML string.

Return Value

string