Class: HTML::LinkSanitizer
- Inherits:
-
FullSanitizer
- Object
- Sanitizer
- FullSanitizer
- HTML::LinkSanitizer
- Defined in:
- actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb
Instance Method Summary collapse
Methods inherited from FullSanitizer
Methods inherited from Sanitizer
Instance Method Details
#sanitizeable?(text) ⇒ Boolean
51 52 53 |
# File 'actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb', line 51 def sanitizeable?(text) !(text.nil? || text.empty? || !((text.index("<a") || text.index("<href")) && text.index(">"))) end |