We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82fa997 commit e586419Copy full SHA for e586419
1 file changed
bin/ucd_to_json.mts
@@ -22,6 +22,14 @@ const jsonEscape: { [key: string]: string } = {
22
"000c": "\\f",
23
};
24
25
+const htmlUnsafe = new Set<String>([
26
+ "003C", // <
27
+ "003E", // >
28
+ "0026", // &
29
+ "0027", // '
30
+ "0022", // "
31
+]);
32
+
33
34
type SearchEntry = {
35
code: string;
@@ -262,6 +270,9 @@ async function main() {
262
270
if (encodeURIComponent(str) == str) {
263
271
tags.push(`URIComponent-safe`);
264
272
}
273
+ if (htmlUnsafe.has(charData.cp)) {
274
+ tags.push(`HTML-unsafe`);
275
+ }
265
276
266
277
entries.push({
267
278
code: charData.cp,
0 commit comments