1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00

Fix: Filtering wasn't correctly applying the type adjustments needed for the global filter. For example this meant that html was not stripped from 'html' type columns, resulting in filtering being done on html tags/attributes as well as the content.

This commit is contained in:
Allan Jardine 2012-11-01 21:45:48 +00:00
parent b56f3619cb
commit 065c2cc66b
2 changed files with 8 additions and 0 deletions

View File

@ -2259,6 +2259,10 @@
*/
function _fnBuildSearchRow( oSettings, aData )
{
for ( var i=0, len=aData.length ; i<len ; i++ ) {
aData[i] = _fnDataToSearch( aData[i], oSettings.aoColumns[i].sType );
}
var sSearch = aData.join(' ');
/* If it looks like there is an HTML entity in the string, attempt to decode it */

View File

@ -312,6 +312,10 @@ function _fnBuildSearchArray ( oSettings, iMaster )
*/
function _fnBuildSearchRow( oSettings, aData )
{
for ( var i=0, len=aData.length ; i<len ; i++ ) {
aData[i] = _fnDataToSearch( aData[i], oSettings.aoColumns[i].sType );
}
var sSearch = aData.join(' ');
/* If it looks like there is an HTML entity in the string, attempt to decode it */