当用户向我的漫游器发送URL时,MS Teams会以contentType为“ text / html”的附件形式放置,并包含如下所示的html内容:
"attachments": [
{
"contentType": "text/html",
"content": "<div><div><span itemscope=\"\" itemtype=\"http://schema.skype.com/Mention\" itemid=\"0\">MyBot</span><a href=\"https://mydomain.image.url\" rel=\"noreferrer noopener\" target=\"_blank\" title=\"My image</a></div>\n</div>"
}
如何获取JSON中的附件内容而不是html?