mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:10:17 +08:00
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
Block a user