Sicos1977 / MSGReader

C# Outlook MSG file reader without the need for Outlook
http://sicos1977.github.io/MSGReader
MIT License
478 stars 168 forks source link

HTML tag case sensitity issue #264

Closed arj01a closed 3 years ago

arj01a commented 3 years ago

Original email message has the souce html containing <a name="_ONE_(TITLE)"></A><a name=ONE></A>

It seems that the mismatch in case between the anchor tags causes a problem.

Message message = new Message(@"c:\TEMP\MailMessage.msg"); var messageBodyHtml = message.BodyHtml;

messageBodyHtml then gives the ouput
<a name="_ONE_(TITLE)"></A>_ONE_(TITLE)<a name=ONE></A>ONE

which then shows ONE in the email message.

Is it possible to match the start and end tags using case insensitity.