Understand Email Body

Panda, KhirodChandra 20 Reputation points
2023-07-18T16:58:05.41+00:00

Hello ,

I am able to get messages from the API . but i see the body (if content type is html) content becomes too messy to read . is there any way we can get the text content of the email minus the usual html syntax ?

Like below if you see a lot many html syntax is embedded in the real message . how do i extract the real message from this messy html syntax

Screenshot 2023-07-18 at 12.56.08 PM

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,078 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Panda, KhirodChandra 20 Reputation points
    2023-07-18T17:13:56.69+00:00

    just to add I am able to get that by a simple html to text code .. is that the best way or anything that API provides to get the text content ?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.