forked from extern/egroupware
Un-encode html special chars (<, >, &) when filling in the title for the selected value
This commit is contained in:
parent
df933068b3
commit
eae198cf6c
@ -334,7 +334,12 @@ function select_result(e) {
|
|||||||
value.value = target.value.key;
|
value.value = target.value.key;
|
||||||
}
|
}
|
||||||
if(search) {
|
if(search) {
|
||||||
search.value = target.value.value;
|
var string = target.value.value;
|
||||||
|
string = string.replace(/&/g, '&');
|
||||||
|
string = string.replace(/</g, '<');
|
||||||
|
string = string.replace(/>/g, '>');
|
||||||
|
|
||||||
|
search.value = string;
|
||||||
var event;
|
var event;
|
||||||
if(document.createEvent) {
|
if(document.createEvent) {
|
||||||
// Most
|
// Most
|
||||||
|
Loading…
Reference in New Issue
Block a user