resanitize
Regular expression-based HTML sanitizer and ad remover, geared toward RSS feed descriptions
Last updated 7 years ago by danmactough .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install resanitize 
SYNC missed versions from official npm registry.

Resanitize - Regular expression-based HTML sanitizer and ad remover, geared toward RSS feed descriptions

This node.js module provides functions for removing unsafe parts and ads from HTML. I am using it for the <description> element of RSS feeds.

Installation

npm install resanitize

Usage


    var resanitize = require('resanitize')
      , html = '<div style="border: 400px solid pink;">Headline</div>'
      ;

    resanitize(html); // => '<div>Headline</div>'

Current Tags

  • 0.3.0                                ...           latest (7 years ago)

12 Versions

  • 0.3.0                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.11                                ...           7 years ago
  • 0.1.10                                ...           8 years ago
  • 0.1.9                                ...           8 years ago
  • 0.1.8                                ...           8 years ago
  • 0.1.7                                ...           8 years ago
  • 0.1.5                                ...           8 years ago
  • 0.1.4                                ...           8 years ago
  • 0.1.3                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 4
This Month 6
Last Day 0
Last Week 0
Last Month 14
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |