fix: remove special chars (#1716)

This commit is contained in:
joyqi 2024-01-23 18:29:59 +08:00 committed by GitHub
parent d0b62eabe9
commit de53b64880
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,6 +79,9 @@ $(document).ready(function() {
prePopulate : tagsPre,
onResult : function (result, query, val) {
// remove special chars
val = val.replace(/<|>|&|"|'/g, '');
if (!query) {
return result;
}