I just found 2 things that might have a bearing on this.
In Javascript
1)escape() This function encodes special characters, with the
exception of: * @ - _ + . /
In Rails 3
2)escape_javascript(javascript)
Escape carrier returns and single and double quotes for JavaScript
segments.
[ show source ]
# File actionpack/lib/action_view/helpers/javascript_helper.rb,
line 50
50: def escape_javascript(javascript)
51: if javascript
52: javascript.gsub(/(\\|<\/|\r\n|[\n\r"'])/)
{ JS_ESCAPE_MAP[$1] }
53: else
54: ''
55: end
56: end
It looks like the escape_javascript function does not like @
I am not sure what the Javascript.gosub does as yet. As i am not into
js and reg exp.
Anyone has any ideas.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.