Skip to content
Permalink
Browse files Browse the repository at this point in the history
js: Add missing escaping to username completion
  • Loading branch information
nijel committed Feb 22, 2022
1 parent f2e5be7 commit 9e19a84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion weblate/static/loader-bootstrap.js
Expand Up @@ -1131,7 +1131,9 @@ $(function () {
return "";
},
menuItemTemplate: function (item) {
return `<a>${item.string}</a>`;
let link = document.createElement("a");
link.innerText = item.string;
return link.outerHTML;
},
values: (text, callback) => {
$.ajax({
Expand Down

0 comments on commit 9e19a84

Please sign in to comment.