Breaks in Outlook.com/Office 365

https://github.com/hteumeuleu/email-bugs/issues/10

I struggled to fix weird issues in Outlook.com and Office 365 until I was reminded of a strange bug where empty link tags or those with only # cause breaks.

When Office 365 encounters an empty href, it removes the

<a>

tag but leaves its content:

<a href="">Hello world</a>

… becomes :

Hello world

When you have something other than a URL inside a href, Office 365 will show this content inside the email between brackets:

<a href="Hello">world</a>

… becomes :

[Hello]world

Office 365 will also strip the

<a>

tag if it contains empty anchor links:

<a href="#">Hello</a>

But it will leave named anchor links alone:

<a href="#tbd">Hello</a>