@opengeoweb/core 9.32.0 → 9.32.1
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/index.esm.js +3 -3
- package/package.json +1 -1
- package/src/lib/utils/sanitizeHTML.d.ts +1 -1
package/index.esm.js
CHANGED
|
@@ -17,7 +17,7 @@ import { Box as Box$1, styled as styled$1 } from '@mui/system';
|
|
|
17
17
|
import _, { isEqual, range } from 'lodash';
|
|
18
18
|
import { LayerSelectButtonConnect, LayerSelectConnect, layerSelectConfig } from '@opengeoweb/layer-select';
|
|
19
19
|
import axios from 'axios';
|
|
20
|
-
import
|
|
20
|
+
import DOMPurify from 'dompurify';
|
|
21
21
|
import { SnackbarWrapperConnect } from '@opengeoweb/snackbar';
|
|
22
22
|
import { useNavigate } from 'react-router-dom';
|
|
23
23
|
import * as Sentry from '@sentry/react';
|
|
@@ -9162,8 +9162,8 @@ const getLayersToUpdate = (layers, mapId) => {
|
|
|
9162
9162
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
9163
9163
|
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
9164
9164
|
* */
|
|
9165
|
-
const sanitizeHTML =
|
|
9166
|
-
__html: DOMPurify.sanitize(
|
|
9165
|
+
const sanitizeHTML = htmlToBeSanitized => ({
|
|
9166
|
+
__html: DOMPurify.sanitize(htmlToBeSanitized, {
|
|
9167
9167
|
ALLOWED_TAGS: ['b', 'i', 'em', 'strong', 'a', 'table', 'td', 'tr', 'br', 'hr', 'th'],
|
|
9168
9168
|
ALLOWED_ATTR: ['href']
|
|
9169
9169
|
})
|
package/package.json
CHANGED