mirror of https://github.com/kiwix/libkiwix.git
`label` field of suggestions is also HTML escaped
Without this if the suggestion text contains a double quote, the response stops being a valid json.
This commit is contained in:
parent
a7fea462b0
commit
c7d77395e7
|
@ -18,6 +18,7 @@
|
|||
|
||||
response: function( event, ui ) {
|
||||
for(const item of ui.content) {
|
||||
item.label = htmlDecode(item.label);
|
||||
item.value = htmlDecode(item.value);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
{{#suggestions}}{{^first}},{{/first}}
|
||||
{
|
||||
"value" : "{{value}}",
|
||||
"label" : "{{& label}}"
|
||||
"label" : "{{label}}"
|
||||
}{{/suggestions}}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue