dtp-cleantext
v1.0.0
Published
Text filtering and safety to make garbage people very sad when they can't hack your node.
Readme
DTP CleanText
We hate "hackers" and chucklefucks this much.
cleanText
Performs an unzalgo and striptags on the input text.
Usage
var DTP = require("dtp-cleantext");
const clean = DTP.cleanText(input);filterText
A more comprehensive and complete filtering of input text that includes the filtering of nonsense, guff, HTML. Then, it performs a shoetest simplification, and removes all diacritics. It finishes with a call to cleanText for convenience.
Usage
var DTP = require("dtp-cleantext");
const filtered = DTP.filterText(input, options);