Open lgaetz opened 10 years ago
The following are illegal characters when returned in XML:
& < > " '
There needs to be some sort of xml encode done to the data but I am not quite sure how to do that in PHP.
*edit @hbonath tm1000 suggested using htmlentities. Code above amended to include
Thanks Lorne, are you suggesting that if the Phonebook entry has one of those characters, then there will be a problem?
Confirmed. If the Phonebook name includes an &
or other special character, it will throw an error. Wrapping the var in htmlentities
as now shown above should fix.
The block of code below is a direct drop in replacement for defining the $results array that pulls names and numbers from the Asterisk Phonebook instead of system extensions. Thinking you might use it to create a whole new Phonebook script or perhaps adapt it to some other usage.