mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 08:49:20 +00:00
A pathetic attempt to get html markup to work in category descriptions. Link will still mangle it, but simple bold, italics, etc. will work.
This commit is contained in:
parent
de9ca54aed
commit
62a746fb68
@ -19,7 +19,7 @@ Discourse.ComboboxViewCategory = Discourse.ComboboxView.extend({
|
||||
templateData.text_color + ";'>" + templateData.name + "</span>";
|
||||
result += " <span class='topic-count'>× " + templateData.topic_count + "</span>";
|
||||
if (templateData.description && templateData.description !== 'null') {
|
||||
result += '<div class="category-desc">' + Handlebars.Utils.escapeExpression(templateData.description.substr(0,200)) + (templateData.description.length > 200 ? '…' : '') + '</div>';
|
||||
result += '<div class="category-desc">' + templateData.description.substr(0,200) + (templateData.description.length > 200 ? '…' : '') + '</div>';
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user