Optionaltag: stringThe tag name. If none is provided, this node's children will not be wrapped in an outer tag.
Optionalattrs: Record<string, string> = {}The tag attributes.
Optionalinline: boolean = trueWhether the node appears inline or as a block.
Append a child to this string node.
The child node or string.
Serialize the StringNode structure into a single string.
The number of spaces to use for indentation (maximum 10). If this value is a string, that string is used as indentation instead (or the first 10 characters if it is longer).
Optionalinternal: { _depth?: number; _inlineParent?: boolean } = {}Staticfrom
A class that behaves like a lightweight DOM node, allowing children to be appended. Serializes to an HTML string.