Skip to content

Commit 97a1b89

Browse files
committed
Don't escape issue title
This should fix < in issue titles
1 parent bf34e7b commit 97a1b89

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

scripts/update-issues.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ async function* iterateIssues(octokit, params) {
3131
}
3232
}
3333

34-
function escape(s) {
35-
return s.replaceAll("&", "&amp;").replaceAll("<", "&lt;");
36-
}
37-
3834
function issueBody(id, data) {
3935
return `${data.description_html}
4036
@@ -163,7 +159,7 @@ async function update() {
163159
continue;
164160
}
165161

166-
const title = escape(data.name);
162+
const title = data.name;
167163
const body = issueBody(id, data);
168164

169165
const issue = openIssues.get(id);

0 commit comments

Comments
 (0)