FIX: strip out links from badge titles
This commit is contained in:
parent
8e4e545929
commit
7cd56e616b
|
@ -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')
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue