I am getting this error in WordPress when I am using a plugin called WpBakery Visual Composer.
I am using the latest version of WordPress (4.5), using the latest Go
a latest fix in December 2016, for Visual composer fix is this,
html2element:function(html){var $template,attributes={},template=vc.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()},
notice this important thing, template=vc.template(html); in the actual code. this is the quick fix in latest version, compatible with WPordpress latest.
Remember to update Wordpress and theme accordingly, so this fix should work fine.
thanks and happy coding