vue-intergrall-plugins 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -143,12 +143,22 @@ export default {
143
143
  },
144
144
  cleanHtml() {
145
145
  const defaultOptions = {
146
- allowedTags: ['a', 'b', 'br', 'div', 'i', 'p', 'span', 'strong', 'u', 'ul', 'ol', 'li', 'img', 'link'],
146
+ allowedTags: [
147
+ 'a', 'b', 'br', 'div', 'i', 'p', 'span', 'strong', 'u', 'ul', 'ol', 'li', 'img', 'link', 'center', 'em', 'blockquote',
148
+ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'table', 'tr', 'td', 'th', 'thead', 'tbody', 'fieldset', 'input', 'textarea', 'hr',
149
+ 'del', 'header', 'footer', 'section', 'article', 'nav', 'aside', 'figure', 'figcaption', 'address', 'abbr', 'code', 'pre',
150
+ 'small', 'sub', 'sup', 'mark', 'wbr', 'q', 'cite', 'time', 'var', 'kbd', 'samp', 'dfn'
151
+ ],
147
152
  allowedAttributes: {
148
- 'a': ['href'],
149
- 'img': ['src', 'width', 'height', 'alt'],
150
- 'link': ['rel', 'href'],
151
- '*': ['style']
153
+ 'a': ['href', 'name', 'target', 'title'],
154
+ 'img': ['src', 'width', 'height', 'alt', 'title'],
155
+ 'link': ['rel', 'href', 'type'],
156
+ 'input': ['type', 'name', 'value', 'placeholder', 'maxlength', 'minlength', 'size', 'readonly', 'disabled'],
157
+ 'textarea': ['name', 'rows', 'cols', 'placeholder', 'maxlength', 'minlength', 'readonly', 'disabled'],
158
+ 'table': ['border', 'cellpadding', 'cellspacing', 'width', 'height'],
159
+ 'th': ['colspan', 'rowspan'],
160
+ 'td': ['colspan', 'rowspan'],
161
+ '*': ['style', 'class', 'id', 'title', 'align', 'valign', 'dir', 'lang', 'tabindex', 'accesskey', 'data-*', 'dir']
152
162
  }
153
163
  };
154
164
  return this.$sanitize(this.html, this.sanitizeOptions || defaultOptions);