Ashan Ashan - 1 year ago 107
HTML Question

HTML mailto subject with '&'

I need set subject to '&' sign from client side html.
I have following code,

<a href=" chocolate&Body=get free hurry.">example</a>

i need to set email subject :
free chocolate & cake

how to do this ?

Answer Source

You need to URL-encode the text; so it becomes:

<a href=" chocolate %26 cake&Body=get free hurry.">example

%26 is the Url-encoded representation of &

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download