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
birdofpreybirdofprey 

anyway to prevent stripping of html tags?

I want to be able to parse strings base on tags in PHP.

 

So, I have a long text area field that text like this.

 

abc </p> def

abc123

 

When i do a select, the tags are automatically remove the "</p>".

 

Any ideas?

savagenoobsavagenoob

Can you show the PHP you use to retrieve this data?

birdofpreybirdofprey
$sfConn = new SforceEnterpriseClient();
$sfClient = $sfConn->createConnection(WSDL_FILE);
$sfLogin = $sfConn->login(....);

    
	$query = "SELECT Id,Name, Description__c FROM Campaign 
					WHERE ParentId = '$ParentID';


		$response = $sfConn->query(($query));
		foreach($response->records as $record){
						if($record->Id > 0){							
							$t[] = $record;		
					}
						
		}

foreach($t as $tlRec){
echo $tlRec->Description__c;
}