find functionality in tree

Hi

Iam using dhtmltree in my code.

I used find functionlity in it.

For normal text it is working.

But for special characters like(<,>…etc) it is not working correctly.

In dhtmtree.js i changed the regexp so that add some special characters in it.

Some of them are working.But <,> these symbols are not working.

Remianing special characters also,behave differently.

When i first call find function it shows correct location

But next time it is not working correctly.Please provide me solution



Thanks

aalekhya


Hi,


Unfortumately, the tree supports only text search.


In case of special symbols you can try to change the search regular expression in the internal tree code (dhtmlxtree.js, line 3986):

searchStr = new RegExp(searchStr.replace(/([?*+\[]()]{1})/gi,"\$1").replace(/ /gi,".*"),“gi”);