We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4645fd commit 4146753Copy full SHA for 4146753
web_src/js/features/comp/SearchRepoBox.ts
@@ -1,4 +1,5 @@
1
import {fomanticQuery} from '../../modules/fomantic/base.ts';
2
+import {htmlEscape} from '../../utils/html.ts';
3
4
const {appSubUrl} = window.config;
5
@@ -18,8 +19,8 @@ export function initCompSearchRepoBox() {
18
19
const items = [];
20
for (const item of response.data) {
21
items.push({
- title: item.repository.full_name.split('/')[1],
22
- description: item.repository.full_name,
+ title: htmlEscape(item.repository.full_name.split('/')[1]),
23
+ description: htmlEscape(item.repository.full_name),
24
});
25
}
26
return {results: items};
0 commit comments