Reputation: 479
I need set subject to '&' sign from client side html. I have following code,
<a href="mailto:[email protected]?subject=free chocolate&Body=get free hurry.">example</a>
i need to set email subject : free chocolate & cake
how to do this ?
Upvotes: 0
Views: 4733
Reputation: 5377
You need to URL-encode the text; so it becomes:
<a href="mailto:[email protected]?subject=free chocolate %26 cake&Body=get free hurry.">example
</a>
%26
is the Url-encoded representation of &
Upvotes: 5