instance method
tokenize
Ruby on Rails 4.0.13
Since v2.2.3 Last seen in v4.1.16Signature
tokenize(text, options)
No documentation comment.
Parameters
-
textreq -
optionsreq
Source
# File actionpack/lib/action_view/vendor/html-scanner/html/sanitizer.rb, line 146
def tokenize(text, options)
options[:parent] = []
options[:attributes] ||= allowed_attributes
options[:tags] ||= allowed_tags
super
end
Defined in actionpack/lib/action_view/vendor/html-scanner/html/sanitizer.rb line 146
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in HTML::WhiteListSanitizer