+ Start a Discussion

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 .



any idea let me know



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?


Take a look at EncodingUtil.urlEncode().