Skip to content

Commit

Permalink
need to tell erb that our <script> tag is html_safe
Browse files Browse the repository at this point in the history
  • Loading branch information
erikstmartin authored and stefanpenner committed Jan 27, 2010
1 parent ad26b39 commit 6a8da20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/ajax_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def observe_form(name, options = {})
def script_decorator(options)
attributes = %w(type="application/json")
attributes += options.map{|k, v| k + '="' + v.to_s + '"'}
"<script " + attributes.join(" ") + "></script>"
"<script " + attributes.join(" ") + "></script>".html_safe!
end

private
Expand Down

0 comments on commit 6a8da20

Please sign in to comment.