instance method
tokenize
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v4.1.16Signature
tokenize(text, options)
No documentation comment.
Parameters
-
textreq -
optionsreq
Source
# File actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb, line 13
def tokenize(text, options)
tokenizer = HTML::Tokenizer.new(text)
result = []
while token = tokenizer.next
node = Node.parse(nil, 0, 0, token, false)
process_node node, result, options
end
result
end
Defined in actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb line 13
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in HTML::Sanitizer