Skip to content

Commit

Permalink
remove custom strip tag list from package
Browse files Browse the repository at this point in the history
  • Loading branch information
frmacdonald committed Sep 19, 2019
1 parent a8cd932 commit f01ca96
Show file tree
Hide file tree
Showing 4 changed files with 2,699 additions and 1,343 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const htmlToText = require('html-to-text')
const nlp = require('compromise')
const absolutify = require('absolutify')
const personalDictionary = require('./personalDictionary.js')
const htmlTags = require('./stripTags.js')
const jsdom = require('jsdom')
const { JSDOM } = jsdom
const helpers = require('./helpers')
Expand Down Expand Up @@ -75,7 +74,7 @@ const articleParser = async function (options, socket) {
article.lighthouse = {}

if (typeof options.striptags === 'undefined') {
options.striptags = htmlTags
options.striptags = []
}

socket.emit('parse:status', 'Starting Horseman')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "horseman-article-parser",
"version": "0.7.1",
"version": "0.7.2",
"description": "Web Page Inspection Tool. Sentiment Analysis, Keyword Extraction, Named Entity Recognition & Spell Check",
"main": "index.js",
"scripts": {
Expand Down
21 changes: 0 additions & 21 deletions stripTags.js

This file was deleted.

4,016 changes: 2,697 additions & 1,319 deletions testresults.json

Large diffs are not rendered by default.

0 comments on commit f01ca96

Please sign in to comment.