Question : php xml string
Answered by : enrico-bisco
htmlspecialchars($string, ENT_XML1 | ENT_QUOTES, 'UTF-8');// will convert ' to ' in addition to &, <, > and "( not | )
Source : https://stackoverflow.com/questions/3426090/how-do-you-make-strings-xml-safe | Last Update : Fri, 11 Jun 21