Calling fnFilter with value containing "&"
Calling fnFilter with value containing "&"
Hi all,
we have a column containing a string like "test & another test". Filtering using "fnFilter" works without problems but when we change the value to "test&another test" no results are returned.
[code]oTable.fnFilter('test & another test', 2); // returns the searched row
oTable.fnFilter('test&another test', 2); // returns no rows[/code]
Anybody aware of a workaround or fix?
Thanks in advance,
squig
we have a column containing a string like "test & another test". Filtering using "fnFilter" works without problems but when we change the value to "test&another test" no results are returned.
[code]oTable.fnFilter('test & another test', 2); // returns the searched row
oTable.fnFilter('test&another test', 2); // returns no rows[/code]
Anybody aware of a workaround or fix?
Thanks in advance,
squig
This discussion has been closed.
Replies
I've not been able to replicate this (although I haven't tried in IE). Using the string "321&123" works fine with a filter for me - as does "321&123" - which is probably more correct in the original HTML. Perhaps you could post a link to an example showing the problem.
Allan