Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 369 Bytes
@App =
Models: {}
Views: {}
Controllers: {}
Collections: {}
# Helper function to escape a string for HTML rendering.
# taken from backbone.js where it sadly is only available
# for Backbone.Model attributes
escapeHTML: (string) ->
string.replace(/&(?!\w+;)/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;')