Is there a way to remove certain parts of the EWS EmailMessage
.Body.Text
value in C# before replying with a ResponseMessage
?
The elements that need to be removed include clickable and non-clickable buttons in HTML format.
Since custom tags cannot be declared, using string.replace
to locate these custom html tags is not an option. Are there alternative methods I can explore, like placing the content in a placeholder?
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"> <o:p></o:p></span></p>
</td>
<td width="30%" style="width:30.0%;background:#17202A;padding:4.5pt 4.5pt 4.5pt 4.5pt;display:inline-block">
<p class="MsoNormal" align="center" style="text-align:center"><b><span style="font-size:11.5pt;font-family:"Helvetica",sans-serif;color:white">ACTION: ADD
<o:p></o:p></span></b></p>
</td>
...