Zum Inhalt springen

API reference / Quittio \ Core \ View

Markdown

final class in quittio/core

Quittio\Core\View\Markdown · Source

Safe Markdown subset for texts: paragraphs, lists, bold and italic. HTML in the input is shown as text, links keep only their text.

Descriptions and notes are also part of the e-invoice XML and are printed as plain text by default (self::plain()); Markdown for them is opt-in (option "markdown"), because formatting changes the displayed text compared with the XML (e.g. "*" for emphasis).

Methods#

MethodDescription
::plain()Plain text as HTML: escaped, line breaks kept, nothing interpreted.
::toHtml()

plain()#

public static function plain(?string $text): string

static

Plain text as HTML: escaped, line breaks kept, nothing interpreted.

ParameterTypeDescription
$text?string
Returns
string

toHtml()#

public static function toHtml(?string $text): string

static

ParameterTypeDescription
$text?string
Returns
string

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.