Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Perl, PHP, Python & Ruby Development
- :
- Line breaks from long text fields missing from PHP...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Line breaks from long text fields missing from PHP SOAP API response
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-19-2012 04:01 PM - edited 11-19-2012 04:02 PM
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!
Re: Line breaks from long text fields missing from PHP SOAP API response
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-18-2012 10:18 AM
I think the line breaks are preserved if you use the nl2br() PHP function.
echo nl2br(your_object->Name_of_field__c);

