public TagNode(String name, HtmlCleaner cleaner) { super(name == null ? null : name.toLowerCase()); this.cleaner = cleaner; if (cleaner != null) { Set pruneTagSet = cleaner.getPruneTagSet(); if (pruneTagSet != null && name != null && pruneTagSet.contains(name.toLowerCase())) { cleaner.addPruneNode(this); } } }