# File lib/action_controller/vendor/html-scanner/html/sanitizer.rb, line 41
41: def process_node(node, result, options)
42: result << node.to_s if node.class == HTML::Text
43: end
# File lib/action_controller/vendor/html-scanner/html/sanitizer.rb, line 32
32: def sanitize(text, options = {})
33: result = super
34: # strip any comments, and if they have a newline at the end (ie. line with
35: # only a comment) strip that too
36: result.gsub!(/<!--(.*?)-->[\n]?/, "") if result
37: # Recurse - handle all dirty nested tags
38: result == text ? result : sanitize(result, options)
39: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.