Permalink
Browse files

Don't escape html in text areas.

  • Loading branch information...
1 parent ae65dc5 commit ca7bfc451b3f1ae86fc1648ea5b9f40c8fa8884e @coupling committed May 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/spree/admin/shared/_language_dropdown.html.erb
@@ -11,7 +11,7 @@
window.spree_multi_lingual.translated_fields_values = [];
<% klass.translated_attribute_names.each do |f| %>
<% SpreeMultiLingual.languages.each do |lang| %>
- window.spree_multi_lingual.translated_fields_values['<%= "#{object_prefix}#{f}_#{lang}" -%>'] = '<%= escape_javascript(object.send("#{f}_#{lang}").gsub(/\r\n?/,"")) if !object.send("#{f}_#{lang}").nil? -%>';
+ window.spree_multi_lingual.translated_fields_values['<%= "#{object_prefix}#{f}_#{lang}" -%>'] = '<%=raw escape_javascript(object.send("#{f}_#{lang}").gsub(/\r\n?/,"")) if !object.send("#{f}_#{lang}").nil? -%>';
<% end %>
<% end %>
</script>

0 comments on commit ca7bfc4

Please sign in to comment.