Skip to content

Commit 092aa91

Browse files
committed
add comment
1 parent 9d6a1dd commit 092aa91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/kit/src/utils/escape.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
const escape_html_attr_dict = {
77
'&': '&',
88
'"': '"'
9+
// Svelte also escapes < because the escape function could be called inside a `noscript` there
10+
// https://github.com/sveltejs/svelte/security/advisories/GHSA-8266-84wp-wv5c
11+
// However, that doesn't apply in SvelteKit
912
};
1013

1114
/**

0 commit comments

Comments
 (0)