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
deepakMdeepakM 

How we can pass html in query string?

Hi every one i have one http request in apex class below .is thr any way to send a html as a querystring .

 

here i get fr as  a html .

http:/abc.com/SendItineraryEmail?opportunityId='+fr.Opportunity__c+'&flightRequestID='+fr.Id+'&emailTo='+fr.Email_To__c+'&emailCc='+fr.Email_Cc__c+'&emailFrom='+fr.Email_From__c+'&subject='+fr.Subject__c+'&fr='+fr);

 

any idea let me know

 

bob_buzzardbob_buzzard

Are you looking to send HTML markup in the query string?  You might be able to get some way towards that by HTML encoding the markup, but it seems like a convoluted way to do things - can you explain what you are trying to achieve?

tomcollinstomcollins

Take a look at EncodingUtil.urlEncode().