You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 month ago | |
---|---|---|
dist | 1 month ago | |
src | 1 month ago | |
types | 1 month ago | |
.gitignore | 1 month ago | |
LICENSE | 1 month ago | |
README.md | 1 month ago | |
index.js | 1 month ago | |
package.json | 1 month ago | |
pnpm-lock.yaml | 1 month ago | |
tsconfig.json | 1 month ago |
README.md
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);