setInnerHtml 方法
- String? html,
- {NodeValidator? validator,
- NodeTreeSanitizer? treeSanitizer}
实现
void setInnerHtml(String? html,
{NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) {
this.nodes.clear();
append(document.body!.createFragment(html,
validator: validator, treeSanitizer: treeSanitizer));
}