mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 05:39:41 +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({
|
export default Ember.Component.extend({
|
||||||
tagName: 'span',
|
tagName: 'span',
|
||||||
classNameBindings: [':user-badge', 'badge.badgeTypeClassName'],
|
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'],
|
attributeBindings: ['data-badge-name', 'title'],
|
||||||
'data-badge-name': Em.computed.alias('badge.name')
|
'data-badge-name': Em.computed.alias('badge.name')
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user