function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
highland23highland23 

Line breaks from long text fields missing from PHP SOAP API response

Hi folks,

 

We're trying to pull data from a long text field via the PHP SOAP API.  When we do, any of the line breaks that exist within the field disappear in the SOAP request answer.  For instance, this...

 

Line 1 here.

 

Line 2 here.

 

...turns into this....

 

Line 1 here.Line 2 here.

 

Has anyone else experienced this?  We seem to not be receiving any notification of where the line breaks should exist.

 

Cheers!

Jess_LopezJess_Lopez

I think the line breaks are preserved if you use the nl2br() PHP function.

 

echo nl2br(your_object->Name_of_field__c);