• Stars
    star
    1,048
  • Rank 43,968 (Top 0.9 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐ŸŒ€ React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more.

Interweave

Build Status npm version npm deps

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

https://interweave.dev

More Repositories

1

emojibase

๐ŸŽฎ A collection of lightweight, up-to-date, pre-generated, specification compliant, localized emoji JSON datasets, regex patterns, and more.
TypeScript
443
star
2

babel-plugin-typescript-to-proptypes

Generate React PropTypes from TypeScript interfaces or type aliases.
TypeScript
366
star
3

decoda

A lightweight lexical string parser for BBCode styled markup.
PHP
196
star
4

uploader

[Deprecated] A CakePHP plugin for file uploading and validating.
PHP
193
star
5

packemon

๐Ÿ“ฆ Build and prepare packages for npm distribution using standardized configurations and practices. Gotta pack 'em all!
TypeScript
188
star
6

forum

[Deprecated] A CakePHP plugin for forum / bulletin board systems.
PHP
131
star
7

boost

๐Ÿš€ A collection of type-safe cross-platform packages for building robust server-side and client-side systems.
TypeScript
105
star
8

shapeshifter

๐Ÿบ Generate relational schemas, PropTypes, Flow aliases, and TypeScript interfaces from JSON or GraphQL schematic files.
TypeScript
103
star
9

utility

[Deprecated] A CakePHP plugin for common utility classes.
PHP
69
star
10

docusaurus-plugin-typedoc-api

Docusaurus plugin that provides source code API documentation powered by TypeDoc.
TypeScript
63
star
11

admin

[Deprecated] A CakePHP plugin that provides admin CRUD functionality for app and plugin models.
PHP
47
star
12

auto-login

[Deprecated] Use the Utility plugin.
PHP
45
star
13

transit

A lightweight file uploading library with image transformation and remote storage support.
PHP
41
star
14

type-converter

[Deprecated] Convert a type to another.
PHP
31
star
15

feeds

[Deprecated] Use the Utility plugin.
PHP
30
star
16

tournament

[Deprecated] A CakePHP plugin for competitive leagues, tournaments, brackets, teams and players.
PHP
24
star
17

optimal

Build, validate, and transform values with immutable typed schemas.
TypeScript
17
star
18

rut

โš›๏ธ React testing made easy. Supports DOM and custom renderers.
TypeScript
16
star
19

spam-blocker

[Deprecated] Use the Utility plugin.
PHP
15
star
20

build-tool-config

Build tool configuration files for easy re-use.
TypeScript
12
star
21

formation

[Unsupported] A stand alone form manager, builder, validator and cleaner.
PHP
11
star
22

compression

[Unsupported] A stand alone CSS parser, minifier and cacher.
PHP
10
star
23

ajax-handler

[Deprecated] Use the Utility plugin.
PHP
10
star
24

rust-js-ecosystem

Rust crates for common JavaScript and TypeScript functionality.
Rust
7
star
25

gears

[Unsupported] A stand alone PHP template engine and parser.
PHP
6
star
26

resession

[Unsupported] A stand alone session management class.
PHP
5
star
27

databasic

[Deprecated] Use the Titon\Model package.
PHP
5
star
28

rust-cicd-env

Rust crates for extracting CI/CD information from the environment.
Rust
4
star
29

numword

[Unsupported] A stand alone number to word converter.
PHP
3
star
30

milk

A fork of MooTools for the new generation.
JavaScript
3
star
31

blizzard-sdk

PHP SDK for the Blizzard WoW API
PHP
3
star
32

dotfiles

Dotfiles for my local environment.
Vim Script
3
star
33

data-structures

A collection of JavaScript data structures.
JavaScript
3
star
34

compartment

A component dependency graph.
JavaScript
2
star
35

typescript-eslint-single-run

TypeScript
2
star
36

packager

[Deprecated] A dependency and script packager for static assets.
PHP
1
star
37

web-lang

A programming language for the web.
1
star
38

hhi

Command line tool for generating Hack HHI definitions.
PHP
1
star
39

statsburner

[Deprecated] A stand alone wrapper for the Feedburner Awareness API.
PHP
1
star
40

joop

OOP based functionality for JavaScript and Node.js
JavaScript
1
star
41

figg

Powerful configuration format, for all languages.
1
star
42

aoc-2022

Advent of Code 2022
Rust
1
star