Class: Rails::HTML::Sanitizer
Constant Summary
collapse
- VERSION =
"1.6.0"
Class Method Summary
collapse
Instance Method Summary
collapse
full_sanitizer, link_sanitizer, safe_list_sanitizer, white_list_sanitizer
Class Method Details
.best_supported_vendor ⇒ Object
.html5_support? ⇒ Boolean
7
8
9
10
11
|
# File 'lib/rails/html/sanitizer.rb', line 7
def html5_support?
return @html5_support if defined?(@html5_support)
@html5_support = Loofah.respond_to?(:html5_support?) && Loofah.html5_support?
end
|
Instance Method Details
#sanitize(html, options = {}) ⇒ Object
18
19
20
|
# File 'lib/rails/html/sanitizer.rb', line 18
def sanitize(html, options = {})
raise NotImplementedError, "subclasses must implement sanitize method."
end
|