Reply
Regular Contributor
highland23
Posts: 21
0

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

[ Edited ]

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!

Contributor
Jess_Lopez
Posts: 6
0

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

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

 

echo nl2br(your_object->Name_of_field__c);