· July 5, 2015
Got a little problem here where I need your help pls:
I've got a textarea where I can input any data I want, which gets saved in a database via mysqli. And whenever I try to save data with an ampersand (&) I get the Error:
Type Error: Cannot read proberty 'documentElement' of null.
I estimate that the problem could be solved if the ampersand gets decoded somehow befor saving and encoded after the xml response.