visjs / vis-timeline

📅 Create a fully customizable, interactive timelines and 2d-graphs with items and ranges.
https://visjs.github.io/vis-timeline/
Other
1.88k stars 315 forks source link

dynamic content its not render #1455

Open k4mus opened 2 years ago

k4mus commented 2 years ago

this example doesn't work anymore. its an timeline with progress bar. looks like a problem with the css.

please letme know how to fix. thanks

https://visjs.github.io/vis-timeline/examples/timeline/items/visibleFrameTemplateContent.html

image
sguilly commented 1 year ago

issue start with version 7.4.4 to fix: xss security

lib/shared/Configurator.js div.innerHTML = util.xss(name);

fix in version 7.4.7 by adding an new option :

xss: {
    disabled: true,    
  },

or by set whitelist

xss: {
    disabled: false,
    filterOptions: {
      whiteList: { p: ['class', 'data-from-template'], div: 'class' },
    },
  },

This issue should be close