This happens if you try to push an entity with a Drupal html-textarea (like a body field) to a Salesforce field with SOAP. The SOAP XML expects all fields to be strings, so html must be escaped with either something like htmlentities() or <![CDATA[]]>.

Since this is a SOAP limitation, the fix should probably go in that code.

Comments

mariacha1 created an issue. See original summary.

mariacha1’s picture

Status: Active » Needs review
StatusFileSize
new846 bytes

Here's a patch taking advantage of the hook_salesforce_push_params_alter() function within the salesforce_soap module to look for any mapped values with html in them, and escape it. From what I could tell, just throwing <![CDATA[]]> around everything wouldn't hurt it, but I only tested with strings and dates and would hate to be wrong!

aaronbauman’s picture

Status: Needs review » Closed (won't fix)

7.x is no longer supported

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.