Should have been escape, no unescape
This commit is contained in:
parent
b23391b66d
commit
2013c524ca
|
@ -658,7 +658,7 @@
|
|||
}
|
||||
div = new Element('div', {
|
||||
'style': style_block
|
||||
}).update(this.search_field.value.unescapeHTML());
|
||||
}).update(this.search_field.value.escapeHTML());
|
||||
document.body.appendChild(div);
|
||||
w = Element.measure(div, 'width') + 25;
|
||||
div.remove();
|
||||
|
|
|
@ -555,7 +555,7 @@ class Chosen
|
|||
for style in styles
|
||||
style_block += style + ":" + @search_field.getStyle(style) + ";"
|
||||
|
||||
div = new Element('div', { 'style' : style_block }).update(@search_field.value.unescapeHTML())
|
||||
div = new Element('div', { 'style' : style_block }).update(@search_field.value.escapeHTML())
|
||||
document.body.appendChild(div)
|
||||
|
||||
w = Element.measure(div, 'width') + 25
|
||||
|
|
Loading…
Reference in a new issue