We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c60da7 commit 9505a21Copy full SHA for 9505a21
actionview/lib/action_view/helpers/javascript_helper.rb
@@ -47,7 +47,13 @@ def escape_javascript(javascript)
47
# tag.
48
#
49
# javascript_tag "alert('All is good')", defer: 'defer'
50
- # # => <script defer="defer">alert('All is good')</script>
+ #
51
+ # Returns:
52
+ # <script defer="defer">
53
+ # //<![CDATA[
54
+ # alert('All is good')
55
+ # //]]>
56
+ # </script>
57
58
# Instead of passing the content as an argument, you can also use a block
59
# in which case, you pass your +html_options+ as the first parameter.
0 commit comments