DocumentFragment.html 构造函数

DocumentFragment.html(
  1. String? html,
  2. {NodeValidator? validator,
  3. NodeTreeSanitizer? treeSanitizer}
)

实现

factory DocumentFragment.html(String? html,
    {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) {
  return document.body!.createFragment(html,
      validator: validator, treeSanitizer: treeSanitizer);
}