diff --git a/plugins/techdocs/package.json b/plugins/techdocs/package.json index ed21ea8713..65ea979607 100644 --- a/plugins/techdocs/package.json +++ b/plugins/techdocs/package.json @@ -27,7 +27,6 @@ "@material-ui/core": "^4.9.1", "@material-ui/icons": "^4.9.1", "@material-ui/lab": "4.0.0-alpha.45", - "@types/sanitize-html": "^1.23.3", "react": "^16.13.1", "react-dom": "^16.13.1", "react-router": "6.0.0-beta.0", diff --git a/plugins/techdocs/src/reader/transformers/sanitizeDOM/index.ts b/plugins/techdocs/src/reader/transformers/sanitizeDOM/index.ts index 863698e16d..153e474e87 100644 --- a/plugins/techdocs/src/reader/transformers/sanitizeDOM/index.ts +++ b/plugins/techdocs/src/reader/transformers/sanitizeDOM/index.ts @@ -14,6 +14,7 @@ * limitations under the License. */ +// @ts-ignore import sanitizeHtml from 'sanitize-html'; import type { Transformer } from '..'; import { TECHDOCS_ALLOWED_TAGS } from './tags'; diff --git a/yarn.lock b/yarn.lock index ebfc19ec8a..9f85e53942 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3960,13 +3960,6 @@ "@types/node" "*" rollup "^0.63.4" -"@types/sanitize-html@^1.23.3": - version "1.23.3" - resolved "https://artifactory.spotify.net/artifactory/api/npm/virtual-npm/@types/sanitize-html/-/sanitize-html-1.23.3.tgz#26527783aba3bf195ad8a3c3e51bd3713526fc0d" - integrity sha1-JlJ3g6ujvxla2KPD5RvTcTUm/A0= - dependencies: - htmlparser2 "^4.1.0" - "@types/serve-static@*": version "1.13.3" resolved "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.3.tgz#eb7e1c41c4468272557e897e9171ded5e2ded9d1"