Announcements
Hi everyone,
I’m facing an issue in Copilot Studio (Teams channel) and need some guidance.
When a user sends a message sometimes is shows <div> tag: Thanks
Thanks
the bot displays it exactly as (from users end): <div>Thanks</div> instead of rendering or converting it to plain text (Thanks).
<div>Thanks</div>
So essentially, HTML tags from user input are not being sanitized or stripped, and they appear directly in the chat.
Use a replace expression in your topic: Example: Substitute( Substitute(userInput, "<div>", ""), "</div>", "")
Substitute( Substitute(userInput, "<div>", ""), "</div>", "")
For broader cleanup (basic approach): Substitute(Substitute(Substitute(...)))
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 277
11manish 206
sannavajjala87 156 Super User 2026 Season 1