From 62a746fb68970a55be0dad3860ac46eda0d7a237 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 19 Apr 2013 12:41:34 -0400 Subject: [PATCH] A pathetic attempt to get html markup to work in category descriptions. Link will still mangle it, but simple bold, italics, etc. will work. --- .../javascripts/discourse/views/combobox_view_category.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/combobox_view_category.js b/app/assets/javascripts/discourse/views/combobox_view_category.js index a4e95da7307..eea7101a886 100644 --- a/app/assets/javascripts/discourse/views/combobox_view_category.js +++ b/app/assets/javascripts/discourse/views/combobox_view_category.js @@ -19,7 +19,7 @@ Discourse.ComboboxViewCategory = Discourse.ComboboxView.extend({ templateData.text_color + ";'>" + templateData.name + ""; result += " × " + templateData.topic_count + ""; if (templateData.description && templateData.description !== 'null') { - result += '
' + Handlebars.Utils.escapeExpression(templateData.description.substr(0,200)) + (templateData.description.length > 200 ? '…' : '') + '
'; + result += '
' + templateData.description.substr(0,200) + (templateData.description.length > 200 ? '…' : '') + '
'; } return result; }