React library to safely render HTML, filter attributes, autowrap text, autolink, and much more.
npm install interweave


Interweave is a robust React library that can...
- Safely render HTML without using dangerouslySetInnerHTML.
- Safely strip HTML tags.
- Automatic XSS and injection protection.
- Clean HTML attributes using filters.
- Interpolate components using matchers.
- Autolink URLs, IPs, emails, and hashtags.
- Render Emoji and emoticon characters.
- And much more!
``tsx`
`tsx`
matchers={[new UrlMatcher('url'), new HashtagMatcher('hashtag')]}
/>
- React 16.8+ / 17+
- IE 11+
- Emoji support: fetch, sessionStorage
Interweave requires React as a peer dependency.
```
yarn add interweave react
// Or
npm install interweave react