mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-18 10:00:48 +08:00
🐛 引用锚文本转义
This commit is contained in:
parent
4ed549cdb1
commit
e3d0573b5a
@ -73,7 +73,8 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
|
|||||||
});
|
});
|
||||||
inputElement.addEventListener("input", () => {
|
inputElement.addEventListener("input", () => {
|
||||||
if (inputElement.value) {
|
if (inputElement.value) {
|
||||||
element.textContent = Lute.EscapeHTMLStr(inputElement.value);
|
// 不能使用 textContent,否则 < 会变为 <
|
||||||
|
element.innerHTML = Lute.EscapeHTMLStr(inputElement.value);
|
||||||
} else {
|
} else {
|
||||||
fetchPost("/api/block/getRefText", {id: refBlockId}, (response) => {
|
fetchPost("/api/block/getRefText", {id: refBlockId}, (response) => {
|
||||||
element.innerHTML = response.data;
|
element.innerHTML = response.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user