I had previously used that code (that is why it is commented out).
I had to remove it due to multiple issues on many servers.
Although the code makes logical sense, it did not work across all servers and many WYSIWYG started double escaping or even removing completely special characters.
I’m not confident enough to put this back in, and I do apologies that this doesn’t leave you with much option, but perhaps you could chat to your server and change your magic quotes setting?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.