filterNode

abstract var filterNode: (node: Node) -> Boolean?(source)

Given a Node return false if you wish to ignore that node in the output. By default, ignores <style />, <script /> and comment nodes.