Mac Outlook 2016中mailbox.item.body.getAsync()遇无效HTML返回空串求助
Hey everyone, I came across a frustrating inconsistency between Mac Outlook 2016 and the web-based Outlook when working with the Office JavaScript API. Here's what I found:
- Mac Outlook 2016客户端
The Problem
When calling the mailbox.item.body.getAsync() method (with HTML coercion type enforced) on an email containing invalid HTML, the API returns an empty string instead of the actual body content.
Example of Invalid HTML in Question
Here, "invalid HTML" refers to scenarios where the content lacks a closing <html> tag, like this snippet:
<div> <div> Foo bar </div> </div>
Contrasting Behavior in Web Outlook
On the other hand, executing the exact same API call in the web version of Outlook (Chrome browser, Office 365 environment) works as expected—it returns the full email body without any issues.
内容的提问来源于stack exchange,提问作者Sameera Jayaseckara

