JSPM

  • Created
  • Published
  • Downloads 88089
  • Score
    100M100P100Q154486F
  • License MIT

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

Package Exports

  • interweave
  • interweave/lib/components/Emoji
  • interweave/lib/data/EmojiData
  • interweave/lib/loaders/withEmojiData
  • interweave/lib/shapes

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (interweave) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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!

Requirements

  • React 15/16+
  • IE 10+
  • Emoji support: fetch, sessionStorage

Installation

Interweave requires React and Emojibase as a peer dependency.

npm install interweave emojibase react --save
// Or
yarn add interweave emojibase react

Usage

Please refer to the official documentation for more information.