adminforth 2.17.0-next.70 → 2.17.0-next.71

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.
@@ -237,8 +237,12 @@ export function protectAgainstXSS(value: string) {
237
237
  ],
238
238
  allowedAttributes: {
239
239
  'li': [ 'data-list' ],
240
- 'img': [ 'src', 'srcset', 'alt', 'title', 'width', 'height', 'loading' ]
241
- }
240
+ 'img': [ 'src', 'srcset', 'alt', 'title', 'width', 'height', 'loading' ],
241
+ // Allow markup on spans (classes & styles), and
242
+ // generic data/aria/style attributes on any element. (e.g. for KaTeX-related previews)
243
+ 'span': [ 'class', 'style' ],
244
+ '*': [ 'data-*', 'aria-*', 'style' ]
245
+ },
242
246
  });
243
247
  }
244
248
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.17.0-next.70",
3
+ "version": "2.17.0-next.71",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",