Skip to content

Commit d8c5577

Browse files
committed
Update Rails HTML Sanitizer for wasm build
1 parent 5980f8a commit d8c5577

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/rails-wasm/rails-wasm-shim/stubs/rails-html-sanitizer.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
module Rails
2+
module HTML
3+
class Sanitizer
4+
def sanitize(html, ...) = html
5+
6+
def sanitize_css(style) = style
7+
8+
def self.full_sanitizer = self
9+
10+
def self.best_supported_vendor = Rails::HTML4::Sanitizer
11+
end
12+
end
13+
214
module HTML4
315
class Sanitizer
416
def sanitize(html, ...) = html

0 commit comments

Comments
 (0)