user1267332
user1267332

Reputation: 13

How to remove an unneccessary space within a link

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

Answers (2)

Matthew Darnell
Matthew Darnell

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

Alaa.Ali
Alaa.Ali

Reputation: 1202

Use HttpUtility.HtmlEncode(url), nd on the other end HttpUtility.HtmlDecode(url)

Upvotes: 1

Related Questions