Skip to content

Commit 744ed6b

Browse files
committed
should mark js code as html_safe
1 parent de72c30 commit 744ed6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/opal_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def opal_tag(opal_code_or_options = nil, html_options = {}, &block)
1111
compiler = Opal::Compiler.new(opal_code_or_options, compiler_options)
1212
js_code = compiler.compile
1313
javascript_tag html_options do
14-
js_code
14+
js_code.html_safe
1515
end
1616
end
1717

0 commit comments

Comments
 (0)