PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Entry Find and Replace

  1. 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?

    Posted 13 years ago on Tuesday March 27, 2012 | Permalink