Merhabalar

Konuya dair internette şöyle bir çözüm buldum ve uyguladım. Şu anda bir sorun yaşamıyorum.

html2element: function(html) {    var $template, attributes = {},        template = html;    $template = $(template(this.model.toJSON()).trim()), _.each($template.get(0).attributes, function(attr) {        attributes[attr.name] = attr.value    }), this.$el.attr(attributes).html($template.html()), this.setContent(), this.renderContent()},
kaynak