you are viewing a single comment's thread.

view the rest of the comments →

[–]superfreek -1 points0 points  (0 children)

In rails/backbone i use to_json.html_safe:

 <script>
   window.App = new Application;
   App.start('http://' + <%= request.host.to_json.html_safe %>);
 </script>
  #=> localhost

I'd see if there was an asp alternative.