1.0.2 • Published 10 years ago

kevbook.text-cleanup v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

text-cleanup

All purpose Text-cleanup for nodeJS apps.

  • Strips html tags (similar to PHP 5.5's strip_tags, php_strip_tags_ex)
  • Normalizes whitepsace characters to \t \n and space
  • Trims each paragraph

Usage

var textCleanup = require('kevbook.text-cleanup');

// Cleaned text
console.log(textCleanup('some text'));