From 938bc0a4b2a857c2c871434a7b2701f69a39a26c Mon Sep 17 00:00:00 2001 From: ClemDee Date: Thu, 8 Aug 2019 16:47:45 +0200 Subject: [PATCH] Escape HTML tags from markdown for pad title --- www/common/sframe-common-codemirror.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/sframe-common-codemirror.js b/www/common/sframe-common-codemirror.js index eb2298e3d..ec09def81 100644 --- a/www/common/sframe-common-codemirror.js +++ b/www/common/sframe-common-codemirror.js @@ -103,12 +103,12 @@ define([ // test for link inside the title, and set text just to the name of the link if (hashAndLink.test(line)) { line.replace(hashAndLink, function (a, one) { - text = one; + text = Util.stripTags(one); }); return true; } line.replace(hash, function (a, one) { - text = one; + text = Util.stripTags(one); }); return true; }