If in the search field I input something like %2Fanystring%2F, it will search for /anystring/, literally, and some plugins like Visual Composer use to encode URLs in the content to improve security. Having said that, your plugin will never find %2Fanystring%2F because it really searches for /anystring/.
So, is there any workaround to this? Can I use some regex?
Please advice
Absolutely not elegant, but I realized that if you want to replace %2Fanystring%2F for / , then you can replace 2Fanystring% for an empty nothing ;)
Hope this dumb trick may help others.
If in the search field I input something like %2Fanystring%2F, it will search for /anystring/, literally, and some plugins like Visual Composer use to encode URLs in the content to improve security. Having said that, your plugin will never find %2Fanystring%2F because it really searches for /anystring/.
So, is there any workaround to this? Can I use some regex? Please advice