Simple question really, I am relatively new to both jQuery and XML.
I just want to pull an email address into a link, but unsure how I am escaping the quotations.
<a href="mailto:'+email+'">Email me</a>
The +email+ is being taken from an XML file with code like this: <email>dan@danixd.com</email>
so I want the HTML to look like:
<a href="mailto:dan@danixd.com">Email me</a>
You can use the
encodeURIComponent(just a plain JS function, not related to jQuery):