diff --git a/app/assets/javascripts/discourse/lib/html.js b/app/assets/javascripts/discourse/lib/html.js index 19e9fa16590..a462a1f9909 100644 --- a/app/assets/javascripts/discourse/lib/html.js +++ b/app/assets/javascripts/discourse/lib/html.js @@ -95,8 +95,9 @@ Discourse.HTML = { (opts.clearChildColor ? ' clear-badge' : '') + extraClasses + "\" "; name = Handlebars.Utils.escapeExpression(name); - // Add description if we have it - if (description) html += "title=\"" + Handlebars.Utils.escapeExpression(description) + "\" "; + + // Add description if we have it, without tags. Server has sanitized the description value. + if (description) html += "title=\"" + $("
").html(description).text() + "\" "; if (!opts.clearChildColor) { var categoryStyle = Discourse.HTML.categoryStyle(category);