${escapeHtml(link.name)}
${escapeHtml(link.description)}
diff --git a/src/pages/links/index.astro b/src/pages/links/index.astro index b14b5c9..0fd5b3e 100644 --- a/src/pages/links/index.astro +++ b/src/pages/links/index.astro @@ -12,7 +12,7 @@ const sections: Section[] = [{ name: '其他', links: [], contentLines: [] }]; let section = sections[0]; let shortcodeDepth = 0; const escapeHtml = (value: string) => value.replace(/[&<>"']/g, (character) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[character]!); -const renderNestedCard = (link: Link) => `
${escapeHtml(link.description)}