Celerik\Ui\Support
Arr
final class Celerik\Ui\Support\Arr
Dot-notation helpers for row arrays (user.name reads $row['user']['name']).
Methods
get
static get(array $row, string $path): mixedset
static set(array $row, string $path, mixed $value): voidtoText
static toText(mixed $value): stringConverts a cell value to display text.
Dates
final class Celerik\Ui\Support\Dates
Strict ISO 8601 date parsing for values coming from requests and databases.
Only 2026-11-05, 2026-11-05T14:30, 2026-11-05 14:30:00 and the same with seconds, fractions and a Z / +01:00 offset are accepted: PHP's relative formats ("next monday") never are.
Methods
parse
static parse(mixed $value, ?DateTimeZone $timeZone = null): DateTimeImmutableisDateOnly
static isDateOnly(mixed $value): boolEditorHtml
final class Celerik\Ui\Support\EditorHtml
Server-side cleaning of rich text editor output (Field::editor()).
The browser can send any HTML, whatever the editor allows, so sanitize before storing or displaying it. The default configuration allows exactly what the Celerik toolbars produce. Requires symfony/html-sanitizer (composer require symfony/html-sanitizer).
Methods
sanitize
static sanitize(string $html, ?HtmlSanitizerConfig $config = null): stringconfig
static config(): HtmlSanitizerConfigParagraphs, headings (h2-h4), bold, italic, underline, strike, lists, quotes, code, and http(s)/mailto links (forced to rel="noopener noreferrer nofollow").
Html
final class Celerik\Ui\Support\Html
Minimal, escaping-by-default HTML builder used by every component.
Methods
escape
static escape(string|int|float|null $value): stringattributes
static attributes(array $attributes): stringRenders an attribute list. true renders a boolean attribute, null and false skip it.
tag
static tag(string $name, array $attributes = [], ?string $content = null): stringRenders an element. $content is inserted as-is: escape it before passing user data.
raw
static raw(string $html): RawHtmlMarks markup as trusted, so content-accepting components insert it unescaped.
content
static content(Stringable|string $content): stringContent for Modal and Tabs: a string is escaped text, a Stringable (a component, Html::raw(), Laravel's HtmlString, Twig's Markup) is inserted as HTML.
classes
static classes(array $classes): ?stringJoins CSS classes, dropping empty entries and duplicates.
RawHtml
final class Celerik\Ui\Support\RawHtml implements Stringable
Trusted HTML, inserted as-is where components accept content (Modal, Tabs). Create it with Html::raw() only for markup you control or have sanitized.
Methods
__construct
__construct(string $html)