+ Start a Discussion

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.




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


echo nl2br(your_object->Name_of_field__c);