Skip to content

Commit

Permalink
docs: document sanitizeSvg usage
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jul 28, 2022
1 parent 44c65f8 commit 20ee396
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ npm i domiso
### API

```js
import { IMAGE_SVG_XML, sanitize } from 'domiso'
import { IMAGE_SVG_XML, sanitize, sanitizeSvg } from 'domiso'

sanitize(`<!-- HTML content -->`)
sanitize(`<svg>SVG content</svg>`, IMAGE_SVG_XML)
sanitizeSvg(`<svg>SVG content</svg>`)
```

## Sponsors
Expand Down

0 comments on commit 20ee396

Please sign in to comment.