mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 02:01:52 +02:00
fix: remove special chars (#1716)
This commit is contained in:
parent
d0b62eabe9
commit
de53b64880
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user