From f7962783296651c00087d7e77442dd4dd7701f12 Mon Sep 17 00:00:00 2001
From: Hailey
Date: Tue, 24 Jun 2025 14:58:08 -0700
Subject: [PATCH] use escapehtml for title
---
bskylink/src/html/linkRedirectContents.ts | 3 ++-
bskylink/src/html/linkWarningContents.ts | 5 +++--
bskylink/src/html/linkWarningLayout.ts | 3 ++-
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/bskylink/src/html/linkRedirectContents.ts b/bskylink/src/html/linkRedirectContents.ts
index a3d31de50e..f387963ea4 100644
--- a/bskylink/src/html/linkRedirectContents.ts
+++ b/bskylink/src/html/linkRedirectContents.ts
@@ -1,10 +1,11 @@
+import escapeHTML from 'escape-html'
import {type Hole, html} from 'uhtml'
export function linkRedirectContents(link: string): Hole {
return html`
-
+
diff --git a/bskylink/src/html/linkWarningContents.ts b/bskylink/src/html/linkWarningContents.ts
index 70b91ea23a..d55f085870 100644
--- a/bskylink/src/html/linkWarningContents.ts
+++ b/bskylink/src/html/linkWarningContents.ts
@@ -1,3 +1,4 @@
+import escapeHTML from 'escape-html'
import {type Hole, html} from 'uhtml'
export function linkWarningContents(opts: {
@@ -15,11 +16,11 @@ export function linkWarningContents(opts: {
: 'This link has been identified as malicious and has blocked for your safety.'}
-
${opts.link}
+
${escapeHTML(opts.link)}