DataTables replaces the global filtering string " with " at initialisation time
DataTables replaces the global filtering string " with " at initialisation time

For example if i use :
$('#example').dataTable( {
"oSearch": {"sSearch": "\""}
} );
the filtering will display "
Same problem when bStateSave=true and the global filtering string is initialised with the string " previously used by the end user.
Maybe, in the function _fnFeatureHtmlFilter() (DataTables 1.9.4 and 1.10) :
$('input[type="text"]').val( oPreviousSearch.sSearch.replace('"','"') );
should be
$('input[type="text"]').val( oPreviousSearch.sSearch );
$('#example').dataTable( {
"oSearch": {"sSearch": "\""}
} );
the filtering will display "
Same problem when bStateSave=true and the global filtering string is initialised with the string " previously used by the end user.
Maybe, in the function _fnFeatureHtmlFilter() (DataTables 1.9.4 and 1.10) :
$('input[type="text"]').val( oPreviousSearch.sSearch.replace('"','"') );
should be
$('input[type="text"]').val( oPreviousSearch.sSearch );
This discussion has been closed.
Replies