Commit 52b974a3 authored by David Stutz's avatar David Stutz

Merge pull request #123 from hanzubon/fix-escape

fix escape problem
parents 28c5db81 2c528b2a
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
else { else {
var selected = ''; var selected = '';
options.each(function() { options.each(function() {
var label = ($(this).attr('label') !== undefined) ? $(this).attr('label') : $(this).text(); var label = ($(this).attr('label') !== undefined) ? $(this).attr('label') : $(this).html();
selected += label + ', '; selected += label + ', ';
}); });
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
} }
// Support the label attribute on options. // Support the label attribute on options.
var label = $(element).attr('label') || $(element).text(); var label = $(element).attr('label') || $(element).html();
var value = $(element).val(); var value = $(element).val();
var inputType = this.options.multiple ? "checkbox" : "radio"; var inputType = this.options.multiple ? "checkbox" : "radio";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment