diff --git a/README.md b/README.md index 024b7e8..e27e17a 100644 --- a/README.md +++ b/README.md @@ -39,13 +39,19 @@ Please note that DOMPurify library [doesn't follow Semantic Versioning](https:// ## Usage +Import: ```javascript import { sanitize } from "isomorphic-dompurify"; ``` +Sanitize: ```javascript const clean = sanitize(dirtyString); ``` +or with [config](https://github.com/cure53/DOMPurify/blob/main/README.md): +```javascript +const clean = sanitize(dirtyString, { USE_PROFILES: { html: true } }); +``` ## Known Issues