The only way I know is to use Sideview Utils in the view. Sideview Utils patches the SimpleResultsTable class and fixes or improves several things, one of which is that if you're in a situation where you have to use the stringreplace intention, backslashes and other characters don't get backslash-escaped by stringreplace, so you get parse errors when you search for things.
Anyway if you're going to use Sideview Utils to address this one issue, then for the 4 legacy $click.foo$ keys like $click.name2$, Sideview Utils patches the module such that $click.name2$ and friends are backslash-escaped, and for headers and redirects, there is also a $click.rawName2$, that is not backslash-escaped. You can also of course use the Sideview Table module, which doesn't have the shortcoming in the first place.
Also, a nice side effect here, is that if you use the Sideview Search module instead of HiddenSearch, you don't need intentions at all. 😃 The docs can tell you more about all this and the docs are in the app itself.
one more note: if you happen to be talking about url-escaping , that's a slightly different topic but the app has good solutions there that I can tell you more about.
... View more