ui: fix markdown tag check (#611)

This commit is contained in:
panda authored and GitHub committed 2023-07-11 13:01:13 +08:00
1 parent 647cd4711e
commit df94e5096f
1 file changed
+1
@@ -21,6 +21,7 @@ const tagCheck = new FilterXSS({
}
if (stack.length - 2 >= 0 && stack[stack.length - 2] === tag) {
// 可能丢失了一个结束标签
html = `</${stack[stack.length - 1]}>${html}`;
stack.pop();
stack.pop();
return html;