From 10e6048cfbbc5c2b69c9c7bdbd0ab062724fd34d Mon Sep 17 00:00:00 2001
From: HsiangNianian <i@jyunko.cn>
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/components/HomeView.svelte')

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, "&amp;")
+          .replace(/</g, "&lt;")
+          .replace(/>/g, "&gt;")
+          .replace(/"/g, "&quot;")
+          .replace(/'/g, "&#039;");
+  }
+
   // 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<string, string> = {
           ':tada:': '🎉', ':sparkles:': '✨', ':bug:': '🐛', ':memo:': '📝',
@@ -89,7 +101,7 @@
 </div>
 
 <!-- Scrollable Container -->
-<div class="relative z-10 h-full {releasesState.isLoading || releasesState.releases.length === 0 ? 'overflow-hidden' : 'overflow-y-auto custom-scrollbar scroll-smooth'}">
+<div class="relative z-10 h-full {releasesState.isLoading ? 'overflow-hidden' : 'overflow-y-auto custom-scrollbar scroll-smooth'}">
   
   <!-- Hero Section (Full Height) -->
   <div class="min-h-full flex flex-col justify-end p-12 pb-32">
-- 
cgit v1.2.3-70-g09d2

