Escape HTML tags from markdown for pad title
This commit is contained in:
parent
e1690c6f1a
commit
938bc0a4b2
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user