CSS and JavaScript stripped in web widget | Community
Skip to main content

CSS and JavaScript stripped in web widget

  • March 11, 2021
  • 1 reply
  • 0 views

Our tech writing team uses custom JS and CSS to render web elements dynamically for our help center. This has worked beautifully until we introduced the web widget. We realized that when articles are displayed in the widget, it strips all the JS and CSS code leaving articles with incorrect or placeholder content.

How can we get the widget to load the JS and CSS, and stop stripping away custom HTML tags?

1 reply

Ram14
  • March 29, 2021

Hello there Nicholas, unfortunately, I am 95% sure when content from articles is loaded into the widget only very basic HTML and inline CSS comes through and everything else is stripped. Only elements that can be edited were outlined in the article https://support.zendesk.com/hc/en-us/articles/229167008-Advanced-customization-of-the-Web-Widget and those features are accessed via the web widget API. Cheers!