+ 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().