Shorthand for creating a DocumentFragment from HTML text.
The outerHTML of what to create
outerHTML
import { createFragment } from 'inherent';const frag1 = createFragment(` <p>Para 1</p> <p>Para 2</p>`)// <p>Para 1</p><p>Para 2</p> Copy
import { createFragment } from 'inherent';const frag1 = createFragment(` <p>Para 1</p> <p>Para 2</p>`)// <p>Para 1</p><p>Para 2</p>
Shorthand for creating a DocumentFragment from HTML text.