https://github.com/milesj/interweave
🌀 React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more.
https://github.com/milesj/interweave
autolink emoji emoji-picker emoji-unicode html-parsing interpolation matcher react react-elements
Last synced: 2 days ago
JSON representation
🌀 React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more.
- Host: GitHub
- URL: https://github.com/milesj/interweave
- Owner: milesj
- License: mit
- Created: 2016-06-26T22:39:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-02-10T20:06:55.000Z (2 months ago)
- Last Synced: 2025-04-05T01:00:40.781Z (10 days ago)
- Topics: autolink, emoji, emoji-picker, emoji-unicode, html-parsing, interpolation, matcher, react, react-elements
- Language: TypeScript
- Homepage: https://interweave.dev
- Size: 9.07 MB
- Stars: 1,120
- Watchers: 8
- Forks: 40
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-react-components - interweave - React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more. (UI Components / Form Components)
- awesome-react-components - interweave - React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more. (UI Components / Form Components)
- awesome-react-components - interweave - React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more. (UI Components / Form Components)
- fucking-awesome-react-components - interweave - React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more. (UI Components / Form Components)
- awesome-react-components - interweave - React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more. (UI Components / Form Components)
README
# Interweave
[](https://github.com/milesj/interweave/actions?query=branch%3Amaster)
[](https://www.npmjs.com/package/interweave)
[](https://www.npmjs.com/package/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
```
## Requirements
- React 16.8+ / 17+
- IE 11+
- Emoji support: `fetch`, `sessionStorage`## Installation
Interweave requires React as a peer dependency.
```
yarn add interweave react
// Or
npm install interweave react
```## Documentation
[https://interweave.dev](https://interweave.dev)