Un-encode html special chars (<, >, &) when filling in the title for the selected value

This commit is contained in:
Nathan Gray 2008-08-11 14:47:16 +00:00
parent df933068b3
commit eae198cf6c

View File

@ -334,7 +334,12 @@ function select_result(e) {
value.value = target.value.key;
}
if(search) {
search.value = target.value.value;
var string = target.value.value;
string = string.replace(/&amp;/g, '&');
string = string.replace(/&lt;/g, '<');
string = string.replace(/&gt;/g, '>');
search.value = string;
var event;
if(document.createEvent) {
// Most