Skip to content

Documentation / @geoverse/core-libre / stringToDom

Function: stringToDom()

ts
function stringToDom(html): ChildNode | null;

Defined in: packages/core-libre/src/utils/dom.ts:6

HTML 字符串转 DOM 节点(取第一个子节点)

Parameters

html

string

Returns

ChildNode | null