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