--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
It removes DOM nodes and attributes that are not explicitly whitelisted. So if you run the sanitizer without white listing anything then it will delete everything.
It does the same sanitizing as was already being done on setting innerHtml/setInnerHtml, the DocumentFragment.html constructor or other methods that create DOM nodes out of strings. It's policy driven, and the default policy is
You can also pass a nodeValidator or treeSanitizer to do something different, or to skip sanitizing altogether.