NodeTreeSanitizer 构造函数

NodeTreeSanitizer(
  1. NodeValidator validator
)

构建一个默认的树清理器,它会移除所有由所提供的验证器不允许的元素和属性。

实现

factory NodeTreeSanitizer(NodeValidator validator) =>
    new _ValidatingTreeSanitizer(validator);