widgets: html: allow falsy value
This commit is contained in:
parent
bee2e6e5be
commit
5031a496b5
1 changed files with 1 additions and 1 deletions
|
|
@ -1012,7 +1012,7 @@ class Widget extends EventEmitter {
|
|||
|
||||
updateHtml(){
|
||||
|
||||
var extraHtml = this.getProp('html') ? sanitizeHtml(this.getProp('html'), {
|
||||
var extraHtml = this.getProp('html') !== '' ? sanitizeHtml(this.getProp('html'), {
|
||||
allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img', 'h1', 'h2']).filter(x=>x!=='iframe'),
|
||||
allowedAttributes: {
|
||||
'*': [ 'title', 'class', 'style', 'type'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue