Kendo Chat with skipSanitization: true makes img tags and some a href tags break

1 Answer 23 Views
Chat
Douglas
Top achievements
Rank 1
Iron
Douglas asked on 06 Feb 2026, 01:25 PM

Hi,

Kendo Chat with skipSanitization: true are still changing the messages so the outputted html breaks since it get A href tag inserted in bad places.

For example if I try to render an img tags it gets broken since a new A tag are being inserted in it so the html in the output message are invalid.

If the "src" url of the image tag doesnt starts with "https:" then it works. So now I need to do something like this to get it working:

let url = "https://demos.telerik.com/kendo-ui/content/web/Customers/LONEP.jpg";
url = url.replace("https:", "");
// becomes "//demos.telerik.com/kendo-ui/content/web/Customers/LONEP.jpg"

Same issue with A href tags url. If they contains a query string then they also became broken. This can also be fixed by removing https: so they just start with //. Works until you have www in them, then it will never work.

Here is examples of this issue:
https://dojo.telerik.com/RrwHKAfv

I  want to use a markdown parser (https://www.npmjs.com/package/marked) with DOMPurify.sanitize for my chat but doenst really work right now.

Am I doing something wrong or have I missunderstood what "skipSanitization: true" means?

Best Regards,
Douglas

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 11 Feb 2026, 12:59 PM

Hi Douglas,

Thank you for reporting the issue to us.

I noticed that you have also opened a bug for it in our public repository - https://github.com/telerik/kendo-ui-core/issues/8410

The developers have identified a fix for the issue and it should be included in the upcoming release. We have also tested the dojo from your post here with the fix and all links are shown as expected.

The next release is planned to be available this week. Please give it a try and let me know how it works for you.

Regards,
Viktor Tachev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Douglas
Top achievements
Rank 1
Iron
commented on 11 Feb 2026, 03:49 PM

Hi Viktor,

Great, looking forward to testing this in the next release!

The GitHub issue was created by another Douglas 🙂

I know the Chat has been completely rewritten. Is there somewhere I can send my thoughts and feedback? We had to customize it a bit to fit our needs, and I think some of those improvements could be valuable to include in the Chat component.

Regards,
Douglas N.
Viktor Tachev
Telerik team
commented on 13 Feb 2026, 04:38 PM

I apologize for the confusion :)

 

We have just shipped a new version with major changes in different components, including the Chat. Would you give the latest version (2026.1.212) a try and let me know how it works for you?

Tags
Chat
Asked by
Douglas
Top achievements
Rank 1
Iron
Answers by
Viktor Tachev
Telerik team
Share this question
or