sanitizeTree method

void sanitizeTree (
  1. Node node
)

Called with the root of the tree which is to be sanitized.

This method needs to walk the entire tree and either remove elements and attributes which are not recognized as safe or throw an exception which will mark the entire tree as unsafe.

Implementation

void sanitizeTree(Node node);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/NodeTreeSanitizer/sanitizeTree.html