class HtmlString implements Htmlable, Stringable (View source)

Properties

protected string $html

The HTML string.

Methods

__construct(string $html = '')

Create a new HTML string instance.

string
toHtml()

Get content as a string of HTML.

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

__construct(string $html = '')

Create a new HTML string instance.

Parameters

string $html

string toHtml()

Get content as a string of HTML.

Return Value

string

bool isEmpty()

Determine if the given HTML string is empty.

Return Value

bool

bool isNotEmpty()

Determine if the given HTML string is not empty.

Return Value

bool

string __toString()

Get the HTML string.

Return Value

string