ui: fix markdown tag check (#611)

pull/617/head
panda 1 year ago committed by GitHub
parent 647cd4711e
commit df94e5096f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save