riklomas / quicksearch

A jQuery plugin for searching through tables, lists, etc quickly
http://www.lomalogue.com/jquery/quicksearch/
680 stars 261 forks source link

Feature Request: Make strip_html() user configurable #32

Open chal opened 13 years ago

chal commented 13 years ago

Users of the API can choose what text to search in a row. This allows removing some elements that contain text that you do not want to search, as well as using more aggressive regexp. For example, I want a regexp that strips more whitespace (to improve search speed) and does not concatenate words.

The method strip_html returns an object that is passed to testQuery. This is good because the returned object does not necessarily have to be a string.

A developer can implement strip_html/testQuery that performs all types of searches, not limited to string contains.

It's a very simple code change, basically move the method to options.