Escape HTML tags from markdown for pad title

This commit is contained in:
ClemDee 2019-08-08 16:47:45 +02:00
parent e1690c6f1a
commit 938bc0a4b2

View File

@ -103,12 +103,12 @@ define([
// test for link inside the title, and set text just to the name of the link // test for link inside the title, and set text just to the name of the link
if (hashAndLink.test(line)) { if (hashAndLink.test(line)) {
line.replace(hashAndLink, function (a, one) { line.replace(hashAndLink, function (a, one) {
text = one; text = Util.stripTags(one);
}); });
return true; return true;
} }
line.replace(hash, function (a, one) { line.replace(hash, function (a, one) {
text = one; text = Util.stripTags(one);
}); });
return true; return true;
} }