Reputation: 13
I'm having trouble trying to remove a space that has been added to a hyper link. The HTML code for the link is correct and I even tested it within my browser. It works fine, however when I past the code into my email service provider and do a test send the links still come in with an unnecessary space.
I'm stumped as to what to do.
Upvotes: 1
Views: 102
Reputation: 4588
Make sure the anchor is on one line. Your email service provider may be breaking it out to something like:
<a href="">
text
</a>
Which could cause extra spaces to show up.
Upvotes: 1
Reputation: 1202
Use HttpUtility.HtmlEncode(url), nd on the other end HttpUtility.HtmlDecode(url)
Upvotes: 1