Node.js based forum software built for the modern web
fix: escape search snippet closes #7506
Barış Soner Uşaklıe906bea4700b
diff --git a/public/src/app.js b/public/src/app.jsindex f2b6c25ba0..1a8e1a65e5 100644--- a/public/src/app.js+++ b/public/src/app.js@@ -596,7 +596,7 @@ app.cacheBuster = null;return;}data.posts.forEach(function (p) {- p.snippet = $(p.content).text().slice(0, 80) + '...';+ p.snippet = utils.escapeHTML($(p.content).text().slice(0, 80) + '...');});app.parseAndTranslate(template, data, function (html) {html.find('.timeago').timeago();