instance method
sanitizeable?
Ruby on Rails 4.0.13
Since v2.2.3 Last seen in v4.1.16Signature
sanitizeable?(text)
No documentation comment.
Parameters
-
textreq
Source
# File actionpack/lib/action_view/vendor/html-scanner/html/sanitizer.rb, line 62
def sanitizeable?(text)
!(text.nil? || text.empty? || !((text.index("<a") || text.index("<href")) && text.index(">")))
end
Defined in actionpack/lib/action_view/vendor/html-scanner/html/sanitizer.rb line 62
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in HTML::LinkSanitizer