@ndlib/component-library 1.0.15 → 1.0.16
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.
|
@@ -2,9 +2,18 @@ import sanitize from 'sanitize-html';
|
|
|
2
2
|
export const DEFAULT_ALLOWED_TAGS = sanitize.defaults.allowedTags.concat([
|
|
3
3
|
'iframe',
|
|
4
4
|
'img',
|
|
5
|
+
'p',
|
|
5
6
|
'figure',
|
|
6
7
|
]);
|
|
7
|
-
export const DEFAULT_ALLOWED_ATTRIBUTES = Object.assign(Object.assign({}, sanitize.defaults.allowedAttributes), { iframe: [
|
|
8
|
+
export const DEFAULT_ALLOWED_ATTRIBUTES = Object.assign(Object.assign({}, sanitize.defaults.allowedAttributes), { iframe: [
|
|
9
|
+
'src',
|
|
10
|
+
'class',
|
|
11
|
+
'frameborder',
|
|
12
|
+
'allow',
|
|
13
|
+
'allowfullscreen',
|
|
14
|
+
'webkitallowfullscreen',
|
|
15
|
+
'mozallowfullscreen',
|
|
16
|
+
], img: ['*'], p: ['*'], figure: ['class'], a: sanitize.defaults.allowedAttributes.a.concat([
|
|
8
17
|
'id',
|
|
9
18
|
'class',
|
|
10
19
|
'data-card-width',
|