           value = value.id
         else if key is 'collection'
           key = 'collection_params'
-          value = htmlEscape(JSON.stringify(value.params))
+          value = _.escape(JSON.stringify(value.params))
         if !_.isObject(value) && !_.include(@nonAttributeOptions, key)
-          attributes["data-#{key}"] = htmlEscape(value)
+          attributes["data-#{key}"] = _.escape(value)
 
     attributes
 

      $el = $(el)
      if !$el.data('view-attached')
        viewName = $el.data('view')
        options = $el.data()
        options.app = app
        ViewClass = BaseView.getView(viewName)
        view = new ViewClass(options)

if global.isServer
  BaseView::_ensureElement = noop
  BaseView::delegateEvents = noop
