searchPrep (text) private documon/src/searchPrep.js 21
xpath documon.searchPrep
file documon/src/searchPrep.js

Clean text so it has:

  • only alpha numeric characters
  • strips newlines and tabs.
  • single word results ignored

Used by tag.js and more.js

Parameters
text
string

text

Returns string

The clean text