Some HTML tags are getting stripped in appendOnSendAsync in outlook for web #4460
Labels
Area: Outlook
Issue related to Outlook add-ins
Status: in backlog
Issue is being tracked in the backlog but timeline for resolution is unknown
Certain HTML tags are being stripped when calling
appendOnSendAsync
from Outlook WebYour Environment
Expected behavior
HTML that is sent to
appendOnSendAsync
gets appended to the end of the email, unchangedCurrent behavior
Certain tags are being removed from the html
Steps to reproduce
appendOnSendAsync
and pass in html such as<span><br id="myId"></span>
<br>
was appended.Provide additional details
This works when sending from a Desktop Client, but behaves differently on Web.
Here's how we're calling appendOnSendAsync:
This is the
html
parameter that gets passed into that function:"<p class="MsoNormal" style="display:none; overflow:hidden; visibility:hidden; line-height:0; font-size:0; max-height:0; max-width:0;"><img src="url-for-image" style="display: none; border: 0; width: 0; height: 0; overflow: hidden;" width="0" height="0" border="0"><br id="yw-custom-id"> </p>"
And this is what ends up getting appended to the body once the email is sent - some of the styles are gone, as well as the
id
on the br tag:<p style=3D"line-height: 0; max-width: 0px; max-height: 0px; font-size: 0px;"><img style=3D"width: 0px; height: 0px; margin-top: 0px; margin-bottom: 0px;" src=3D"url-for-image"><br>
The text was updated successfully, but these errors were encountered: