Handle the case when there are new lines inside a <a> tag

Also, remove mailto: from links href attribute.
Merge remote-tracking branch 'jilion/master'