├── .babelrc ├── .editorconfig ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml └── workflows │ ├── build-and-test.yml │ └── codeql-analysis.yml ├── .gitignore ├── .nvmrc ├── .prettierignore ├── .prettierrc ├── .settings └── .gitignore ├── LICENSE ├── README.md ├── SECURITY.md ├── bower.json ├── demos ├── README.md ├── advanced-config-demo.html ├── basic-demo.html ├── config-demo.html ├── hooks-demo.html ├── hooks-link-proxy-demo.html ├── hooks-mentaljs-demo.html ├── hooks-node-removal-demo.html ├── hooks-node-removal2-demo.html ├── hooks-proxy-demo.html ├── hooks-removal-demo.html ├── hooks-sanitize-css-demo.html ├── hooks-scheme-allowlist.html ├── hooks-target-blank-demo.html ├── lib │ └── Mental.js └── trusted-types-demo.html ├── dist ├── purify.cjs.d.ts ├── purify.cjs.js ├── purify.cjs.js.map ├── purify.es.d.mts ├── purify.es.mjs ├── purify.es.mjs.map ├── purify.js ├── purify.js.map ├── purify.min.js └── purify.min.js.map ├── package.json ├── rollup.config.js ├── scripts ├── commit-amend-build.sh └── fix-types.js ├── src ├── attrs.ts ├── config.ts ├── license_header ├── purify.ts ├── regexp.ts ├── tags.ts └── utils.ts ├── test ├── bootstrap-test-suite.js ├── config │ └── setup.js ├── fixtures │ └── expect.mjs ├── jsdom-node-runner.js ├── jsdom-node.js ├── karma.conf.js ├── karma.custom-launchers.config.js ├── purify.min.spec.js ├── purify.spec.js └── test-suite.js ├── tsconfig.json ├── typescript ├── commonjs-with-no-types │ ├── index.ts │ ├── tsconfig.json │ └── types │ │ └── readme.md ├── commonjs-with-specific-types │ ├── index.ts │ └── tsconfig.json ├── commonjs │ ├── index.ts │ └── tsconfig.json ├── esm-with-no-types │ ├── index.ts │ ├── package.json │ ├── tsconfig.json │ └── types │ │ └── readme.md ├── esm-with-specific-types │ ├── index.ts │ ├── package.json │ └── tsconfig.json ├── esm │ ├── index.ts │ ├── package.json │ └── tsconfig.json ├── nodenext │ ├── index.ts │ └── tsconfig.json ├── package.json └── verify.js └── website └── index.html /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/.babelrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: cure53 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/build-and-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/.github/workflows/build-and-test.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | lts/* 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/.prettierrc -------------------------------------------------------------------------------- /.settings/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/.settings/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/SECURITY.md -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/bower.json -------------------------------------------------------------------------------- /demos/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/README.md -------------------------------------------------------------------------------- /demos/advanced-config-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/advanced-config-demo.html -------------------------------------------------------------------------------- /demos/basic-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/basic-demo.html -------------------------------------------------------------------------------- /demos/config-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/config-demo.html -------------------------------------------------------------------------------- /demos/hooks-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/hooks-demo.html -------------------------------------------------------------------------------- /demos/hooks-link-proxy-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/hooks-link-proxy-demo.html -------------------------------------------------------------------------------- /demos/hooks-mentaljs-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/hooks-mentaljs-demo.html -------------------------------------------------------------------------------- /demos/hooks-node-removal-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/hooks-node-removal-demo.html -------------------------------------------------------------------------------- /demos/hooks-node-removal2-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/hooks-node-removal2-demo.html -------------------------------------------------------------------------------- /demos/hooks-proxy-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/hooks-proxy-demo.html -------------------------------------------------------------------------------- /demos/hooks-removal-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/hooks-removal-demo.html -------------------------------------------------------------------------------- /demos/hooks-sanitize-css-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/hooks-sanitize-css-demo.html -------------------------------------------------------------------------------- /demos/hooks-scheme-allowlist.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/hooks-scheme-allowlist.html -------------------------------------------------------------------------------- /demos/hooks-target-blank-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/hooks-target-blank-demo.html -------------------------------------------------------------------------------- /demos/lib/Mental.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/lib/Mental.js -------------------------------------------------------------------------------- /demos/trusted-types-demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/demos/trusted-types-demo.html -------------------------------------------------------------------------------- /dist/purify.cjs.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/dist/purify.cjs.d.ts -------------------------------------------------------------------------------- /dist/purify.cjs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/dist/purify.cjs.js -------------------------------------------------------------------------------- /dist/purify.cjs.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/dist/purify.cjs.js.map -------------------------------------------------------------------------------- /dist/purify.es.d.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/dist/purify.es.d.mts -------------------------------------------------------------------------------- /dist/purify.es.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/dist/purify.es.mjs -------------------------------------------------------------------------------- /dist/purify.es.mjs.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/dist/purify.es.mjs.map -------------------------------------------------------------------------------- /dist/purify.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/dist/purify.js -------------------------------------------------------------------------------- /dist/purify.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/dist/purify.js.map -------------------------------------------------------------------------------- /dist/purify.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/dist/purify.min.js -------------------------------------------------------------------------------- /dist/purify.min.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/dist/purify.min.js.map -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/rollup.config.js -------------------------------------------------------------------------------- /scripts/commit-amend-build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/scripts/commit-amend-build.sh -------------------------------------------------------------------------------- /scripts/fix-types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/scripts/fix-types.js -------------------------------------------------------------------------------- /src/attrs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/src/attrs.ts -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/license_header: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/src/license_header -------------------------------------------------------------------------------- /src/purify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/src/purify.ts -------------------------------------------------------------------------------- /src/regexp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/src/regexp.ts -------------------------------------------------------------------------------- /src/tags.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/src/tags.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test/bootstrap-test-suite.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/test/bootstrap-test-suite.js -------------------------------------------------------------------------------- /test/config/setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/test/config/setup.js -------------------------------------------------------------------------------- /test/fixtures/expect.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/test/fixtures/expect.mjs -------------------------------------------------------------------------------- /test/jsdom-node-runner.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/test/jsdom-node-runner.js -------------------------------------------------------------------------------- /test/jsdom-node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/test/jsdom-node.js -------------------------------------------------------------------------------- /test/karma.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/test/karma.conf.js -------------------------------------------------------------------------------- /test/karma.custom-launchers.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/test/karma.custom-launchers.config.js -------------------------------------------------------------------------------- /test/purify.min.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/test/purify.min.spec.js -------------------------------------------------------------------------------- /test/purify.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/test/purify.spec.js -------------------------------------------------------------------------------- /test/test-suite.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/test/test-suite.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typescript/commonjs-with-no-types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/commonjs-with-no-types/index.ts -------------------------------------------------------------------------------- /typescript/commonjs-with-no-types/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/commonjs-with-no-types/tsconfig.json -------------------------------------------------------------------------------- /typescript/commonjs-with-no-types/types/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/commonjs-with-no-types/types/readme.md -------------------------------------------------------------------------------- /typescript/commonjs-with-specific-types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/commonjs-with-specific-types/index.ts -------------------------------------------------------------------------------- /typescript/commonjs-with-specific-types/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/commonjs-with-specific-types/tsconfig.json -------------------------------------------------------------------------------- /typescript/commonjs/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/commonjs/index.ts -------------------------------------------------------------------------------- /typescript/commonjs/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/commonjs/tsconfig.json -------------------------------------------------------------------------------- /typescript/esm-with-no-types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/esm-with-no-types/index.ts -------------------------------------------------------------------------------- /typescript/esm-with-no-types/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /typescript/esm-with-no-types/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/esm-with-no-types/tsconfig.json -------------------------------------------------------------------------------- /typescript/esm-with-no-types/types/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/esm-with-no-types/types/readme.md -------------------------------------------------------------------------------- /typescript/esm-with-specific-types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/esm-with-specific-types/index.ts -------------------------------------------------------------------------------- /typescript/esm-with-specific-types/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /typescript/esm-with-specific-types/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/esm-with-specific-types/tsconfig.json -------------------------------------------------------------------------------- /typescript/esm/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/esm/index.ts -------------------------------------------------------------------------------- /typescript/esm/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /typescript/esm/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/esm/tsconfig.json -------------------------------------------------------------------------------- /typescript/nodenext/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/nodenext/index.ts -------------------------------------------------------------------------------- /typescript/nodenext/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/nodenext/tsconfig.json -------------------------------------------------------------------------------- /typescript/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/package.json -------------------------------------------------------------------------------- /typescript/verify.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/typescript/verify.js -------------------------------------------------------------------------------- /website/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cure53/DOMPurify/HEAD/website/index.html --------------------------------------------------------------------------------