Skip to content

Commit

Permalink
Revert "[fix] escape selected text to avoid XSS exploit"
Browse files Browse the repository at this point in the history
Fixes #1382

This reverts commit 71d75f3.
  • Loading branch information
jpic committed Feb 22, 2025
1 parent d33afb9 commit dd242ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dal_select2/static/autocomplete_light/select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ document.addEventListener('dal-init-function', function () {
return $result.text(item.text);
}
} else {
let text = item.text;
if (item.selected) text = escape(text);
return template(text, is_data_html);
return template(item.text, is_data_html);
}
}

Expand Down

0 comments on commit dd242ba

Please sign in to comment.