Thanks for the speedy response, Ali, I’ll keep in mind your advice next time I’m debugging, luckily I’ve managed to deal with the issue.
For anyone that has trouble getting special chars through the WP JSON API (not your plugin specifically) this might be helpful:
I’ve tried sending the data in numerous ways, however what works for sure is sending an ajax ‘post’ request with your query data formatted like that:
query = encodeURIComponent(parameter) + ‘=’ + encodeURIComponent(value);
(add ‘&’ at the end if you are sending more than one variables, as usually is the case).
Any other strings, url concats, sending objects, etc. wouldn’t work for me. The type of the request doesn’t matter (jquery post and ajax, angular $http work for sure).
Again, thanks for the speedy response. You can check the thread as solved.