Skip to content

Commit

Permalink
Revert sanitisation
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko authored Jun 14, 2021
1 parent 375e2b8 commit 934208e
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@
ENTER: 13,
};

const allowList = {
button: ['type'],
input: [
'accept', 'alt', 'autocomplete', 'autofocus', 'capture',
'checked', 'dirname', 'disabled', 'height', 'list', 'max',
'maxlength', 'min', 'minlength', 'multiple', 'type', 'name',
'pattern', 'placeholder', 'readonly', 'required', 'size', 'src',
'step', 'value', 'width', 'inputmode',
],
select: ['name'],
textarea: ['name'],
option: ['value', 'selected'],
};

/**
* Helper for testing whether a selection modifier is pressed
* @param {Event} event
Expand Down Expand Up @@ -197,7 +183,7 @@
} else {
tmpEl = document.createElement('div');
}
tmpEl.innerHTML = Joomla.sanitizeHtml(this.template, allowList);
tmpEl.innerHTML = this.template;
const row = tmpEl.children[0];

// Add to container
Expand Down

0 comments on commit 934208e

Please sign in to comment.