appendHtml 方法

void appendHtml(
  1. String text,
  2. {NodeValidator? validator,
  3. NodeTreeSanitizer? treeSanitizer}
)

将指定的文本解析为 HTML,并将其结果节点添加到此文档片段的最后一个子节点之后。

实现

void appendHtml(String text,
    {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) {
  this.append(new DocumentFragment.html(text,
      validator: validator, treeSanitizer: treeSanitizer));
}