href="mailto:someone@somewhere.org"someone@somewhere.org
href="mailto:someone@somewhere.org ?subject=Hello someone"Hello someone
href="mailto:someone@somewhere.org ?subject=Hello &body=Noodle"Hello
href="mailto:someone@somewhere.org ?subject=Hello &body=I <b>like</b> it %26lt;inofficially%26gt;!"Hello
The encodeURIComponent function can be used to escape HTML entities like the above.
encodeURIComponent("The <tag> floats.")
becomes
"The%20%3Ctag%3E%20floats."