From 1090fb00b6c49dc6f5c88aa0f780b552002148f0 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 2 Jun 2023 11:00:29 +0800 Subject: [PATCH] :art: add title --- app/src/history/diff.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/history/diff.ts b/app/src/history/diff.ts index abaea45bf..59e130ef2 100644 --- a/app/src/history/diff.ts +++ b/app/src/history/diff.ts @@ -4,7 +4,7 @@ import {Protyle} from "../protyle"; import {Constants} from "../constants"; import {disabledProtyle, onGet} from "../protyle/util/onGet"; import {hasClosestByClassName} from "../protyle/util/hasClosest"; -import {escapeHtml} from "../util/escape"; +import {escapeAttr, escapeHtml} from "../util/escape"; import * as dayjs from "dayjs"; import {isMobile} from "../util/functions"; import {App} from "../index"; @@ -20,7 +20,7 @@ const genItem = (data: [], data2?: { title: string, fileID: string }[]) => { id2 = `data-id2="${data2[index].fileID}"`; } html += `
  • - ${escapeHtml(item.title)} + ${escapeHtml(item.title)}
  • `; }); return html;