Forum Discussion
Copilot Studio in Teams sometimes wraps user input with HTML tags (e.g., <div>)
Hi Leo9 thanks for raising your issue.
Teams may internally send messages in HTML format, but raw HTML tags such as <div>...</div> should not normally be displayed directly in the Teams chat UI for end users. There is currently no supported setting in Teams or Copilot Studio to force all incoming messages to plain-text format at the source. However, if HTML tags are visibly rendered in the chat window itself, this is not generally expected behavior and may indicate a rendering/client-side issue or that message content is being echoed back without sanitization.
It would help to confirm whether the tags are appearing in the actual Teams conversation UI versus debug traces/variables, and whether the issue is reproducible across Teams desktop/web/mobile clients.