milesj/interweave
milesj/interweave has 1,153 GitHub stars and 40 forks. GitHot measured -1 stars in 24 hours and -1 in 7 days. Last checked 2026-11-13 04:38 UTC. Last push 2025-02-10.
🌀 React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more.
Measured star growth
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalInterweave
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!
<Interweave content="This string contains <b>HTML</b> and will safely be rendered!" />
<Interweave
content="This contains a URL, https://github.com/milesj/interweave, and a hashtag, #interweave, that will be converted to an anchor link!"
matchers={[new UrlMatcher('url'), new HashtagMatcher('hashtag')]}
/>
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
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
459,068 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,734 starsreact/react
The library for web and native user interfaces.
252,565 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,527 stars