I am currently using the gform_confirmation filter to send some entries on some forms on my website via XML to a CRM.
The problem is that XML has a special set of characters that cannot be used in normal XML strings. These characters being: &, <, >, " and '.
They need converting to their equivelent (e.g. & becomes &).
For example, the following XML string is invalid:
<Organization>IBM & Microsoft</Organization>
Whereas the following is valid XML:
<Organization>IBM & Microsoft</Organization>
Is there a simple or built in way to find and replace these characters on the entire $entry array?