FIX: strip out links from badge titles

This commit is contained in:
Sam 2016-03-29 16:18:31 +11:00
parent 8e4e545929
commit 7cd56e616b

View File

@ -1,7 +1,9 @@
export default Ember.Component.extend({
tagName: 'span',
classNameBindings: [':user-badge', 'badge.badgeTypeClassName'],
title: Em.computed.alias('badge.description'),
title: function(){
return $("<div>"+this.get('badge.description')+"</div>").text();
}.property('badge.description'),
attributeBindings: ['data-badge-name', 'title'],
'data-badge-name': Em.computed.alias('badge.name')
});