mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 06:02:33 +01:00
This commit is contained in:
parent
b7297bdf42
commit
02edf47cda
6 changed files with 21 additions and 16 deletions
|
|
@ -14,7 +14,7 @@ import {Constants} from "../../../constants";
|
|||
import {hintRef} from "../../hint/extend";
|
||||
import {pathPosix} from "../../../util/pathName";
|
||||
import {mergeAddOption} from "./select";
|
||||
import {escapeAttr} from "../../../util/escape";
|
||||
import {escapeAttr, escapeHtml} from "../../../util/escape";
|
||||
import {electronUndo} from "../../undo";
|
||||
|
||||
const renderCellURL = (urlContent: string) => {
|
||||
|
|
@ -798,7 +798,7 @@ export const renderCell = (cellValue: IAVCellValue, rowIndex = 0) => {
|
|||
if (cellValue.type === "select" && index > 0) {
|
||||
return;
|
||||
}
|
||||
text += `<span class="b3-chip" style="background-color:var(--b3-font-background${item.color});color:var(--b3-font-color${item.color})">${item.content}</span>`;
|
||||
text += `<span class="b3-chip" style="background-color:var(--b3-font-background${item.color});color:var(--b3-font-color${item.color})">${escapeHtml(item.content)}</span>`;
|
||||
});
|
||||
} else if (cellValue.type === "date") {
|
||||
const dataValue = cellValue ? cellValue.date : null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue