nylas / sync-engine

:incoming_envelope: IMAP/SMTP sync system with modern APIs
https://nylas.com/docs/platform
GNU Affero General Public License v3.0
3.5k stars 354 forks source link

When getting calendar events from outlook.com, the description field includes HTML #437

Open carolinelane10 opened 7 years ago

carolinelane10 commented 7 years ago

When I create a calendar event on my outlook.com account, the description field in the event returned from Nylas contains some random HTML I did not enter:

{
        "account_id": "...",
        "busy": true,
        "calendar_id": "...",
        "description": "<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n<style type=\"text/css\" style=\"display:none\">\n<!--\np\n\t{margin-top:0;\n\tmargin-bottom:0}\n-->\n</style>\n</head>\n<body dir=\"ltr\">\n<div id=\"divtagdefaultwrapper\" dir=\"ltr\" style=\"font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif\">\n<div class=\"rps_7541\">\n<div>\n<div dir=\"ltr\">\n<div id=\"x_divtagdefaultwrapper\" dir=\"ltr\" style=\"font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols\">\n<p>Here is my description blah blah </p>\n</div>\n</div>\n</div>\n</div>\n</div>\n</body>\n</html>\n",
        "id": "...",
        "location": null,
        "message_id": null,
        "object": "event",
        "owner": "test@outlook.com <test@outlook.com>",
        "participants": [],
        "read_only": false,
        "status": "confirmed",
        "title": "one event",
        "when": {
            "end_time": 1487282400,
            "object": "timespan",
            "start_time": 1487278800
        }
    }
yevhene commented 6 years ago

Also running into this issue.