Using escape() followed by unescape() doesn't make sense; you should end up with what you started with.
As for your Javascript code, the first problem I see is that it contains a syntax error, thus it won't return anything since it'll never get executed. Particularly, this line has unescaped double quotes (since you're using double quotes to delimit the string):
var searchText="is the price. "'" and """ allow this is " cut
hello ' and "helo" & this is normal $it is £pound";
Even if the quotes in that line were properly escaped, I would still expect you to get -1 returned since that text doesn't occur anywhere within the example text you posted.
EDIT: In summary: what Weedpacket said above while I was typing.