View as Markdown

API reference: @salmonui/rich-text

HtmlElementinterface

import type { HtmlElement } from '@salmonui/rich-text';
interface HtmlElement {
    type: 'element';
    tag: string;
    attrs: Record<string, string>;
    children: HtmlNode[];
}

An element of a parsed HTML fragment. Tag and attribute names are lowercase.

HtmlElement members (4)
NameSignatureDescription
typetype: 'element';
tagtag: string;
attrsattrs: Record<string, string>;
childrenchildren: HtmlNode[];