File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- /*! selectize.js - v0.5.5 | https://github.com/brianreavis/selectize.js | Apache License (v2) */
1
+ /*! selectize.js - v0.6.0 | https://github.com/brianreavis/selectize.js | Apache License (v2) */
2
2
3
3
( function ( factory ) {
4
4
if ( typeof exports === 'object' ) {
2164
2164
2165
2165
// render markup
2166
2166
if ( this . settings . render && typeof this . settings . render [ templateName ] === 'function' ) {
2167
- html = this . settings . render [ templateName ] . apply ( this , [ data ] ) ;
2167
+ html = this . settings . render [ templateName ] . apply ( this , [ data , htmlEntities ] ) ;
2168
2168
} else {
2169
2169
label = data [ this . settings . labelField ] ;
2170
2170
switch ( templateName ) {
2173
2173
break ;
2174
2174
case 'optgroup_header' :
2175
2175
label = data [ this . settings . optgroupLabelField ] ;
2176
- html = '<div class="optgroup-header">' + label + '</div>' ;
2176
+ html = '<div class="optgroup-header">' + htmlEntities ( label ) + '</div>' ;
2177
2177
break ;
2178
2178
case 'option' :
2179
- html = '<div class="option">' + label + '</div>' ;
2179
+ html = '<div class="option">' + htmlEntities ( label ) + '</div>' ;
2180
2180
break ;
2181
2181
case 'item' :
2182
- html = '<div class="item">' + label + '</div>' ;
2182
+ html = '<div class="item">' + htmlEntities ( label ) + '</div>' ;
2183
2183
break ;
2184
2184
case 'option_create' :
2185
2185
html = '<div class="create">Create <strong>' + htmlEntities ( data . input ) + '</strong>…</div>' ;
You can’t perform that action at this time.
0 commit comments