Forum Discussion
Leo9
Apr 30, 2026Copper Contributor
Copilot Studio in Teams sometimes wraps user input with HTML tags (e.g., <div>)
I’m using Copilot Studio deployed to Microsoft Teams, and I noticed that user messages are occasionally received with HTML tags. For example, when a user sends "get me the onboarding status", someti...
Prasad_Das-MSFT
Microsoft
May 13, 2026Hi 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.