Class: Rails::HTML::NullSanitizer
- Inherits:
-
Object
- Object
- Rails::HTML::NullSanitizer
- Defined in:
- lib/wasmify/rails/shims/rails-html-sanitizer.rb
Overview
TODO: That should be a real sanitizer (backed by JS or another external interface)
Class Method Summary collapse
- .allowed_attributes ⇒ Object
- .allowed_styles ⇒ Object
- .allowed_tags ⇒ Object
- .full_sanitizer ⇒ Object
- .link_sanitizer ⇒ Object
- .safe_list_sanitizer ⇒ Object
Instance Method Summary collapse
Class Method Details
.allowed_attributes ⇒ Object
142 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 142 def allowed_attributes = [] |
.allowed_styles ⇒ Object
143 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 143 def allowed_styles = [] |
.allowed_tags ⇒ Object
141 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 141 def = [] |
.full_sanitizer ⇒ Object
138 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 138 def full_sanitizer = self |
.link_sanitizer ⇒ Object
139 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 139 def link_sanitizer = self |
.safe_list_sanitizer ⇒ Object
137 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 137 def safe_list_sanitizer = self |
Instance Method Details
#sanitize(html) ⇒ Object
146 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 146 def sanitize(html, ...) = html |
#sanitize_css(style) ⇒ Object
147 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 147 def sanitize_css(style) = style |