From 10e6048cfbbc5c2b69c9c7bdbd0ab062724fd34d Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Thu, 15 Jan 2026 15:03:51 +0800 Subject: docs: Update README.md with enhanced feature descriptions, improved UI terminology, and added installation instructions; update image alt text for accessibility --- ui/src/components/HomeView.svelte | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'ui/src') diff --git a/ui/src/components/HomeView.svelte b/ui/src/components/HomeView.svelte index 2794712..732545f 100644 --- a/ui/src/components/HomeView.svelte +++ b/ui/src/components/HomeView.svelte @@ -22,10 +22,22 @@ }); } + function escapeHtml(unsafe: string) { + return unsafe + .replace(/&/g, "&") + .replace(//g, ">") + .replace(/"/g, """) + .replace(/'/g, "'"); + } + // Enhanced markdown parser with Emoji and GitHub specific features function formatBody(body: string) { if (!body) return ''; + // Escape HTML first to prevent XSS + let processed = escapeHtml(body); + // Emoji map (common GitHub emojis) const emojiMap: Record = { ':tada:': '🎉', ':sparkles:': '✨', ':bug:': '🐛', ':memo:': '📝', @@ -89,7 +101,7 @@ -
+
-- cgit v1.2.3-70-g09d2