Skip to content

HtmlString


  • Full name: \Qubus\Support\HtmlString
  • This class implements: Stringable

Properties

html

protected ?string $html

Methods

__construct

public __construct(?string $html = ''): mixed

Parameters:

Parameter Type Description
$html ?string

toHtml

Get the HTML string.

public toHtml(): string|null

isEmpty

Determine if the given HTML string is empty.

public isEmpty(): bool

isNotEmpty

Determine if the given HTML string is not empty.

public isNotEmpty(): bool

__toString

Get the HTML string.

public __toString(): string