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

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

BehoDoubleBehoDouble Posts: 2Questions: 0Answers: 0
edited February 2014 in Bug reports
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 );

Replies

  • BehoDoubleBehoDouble Posts: 2Questions: 0Answers: 0
    In other words, jQuery $().val() already converts special characters to HTML entities.
This discussion has been closed.