RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: benmmurphy
that should be:
window.myvar == "<foo>"
for example if you have a string like:
and if you have:
window.myvar = '<%= j "<foo>" %>';
<% end %>
then window.myvar == "<foo>"
the j function really has to replace '<' and '>' with '\u003C' and '\u003E'.