@rane/web-auto-extractor
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -26,3 +26,5 @@ 'use strict'; | ||
var parsedJSON = JSON.parse(cleanedJson); | ||
// Not certain if decoding html entities from raw JSON is foolproof but | ||
// it seems to work | ||
var parsedJSON = JSON.parse(entities.decode(cleanedJson)); | ||
if (!Array.isArray(parsedJSON)) { | ||
@@ -48,2 +50,6 @@ parsedJSON = [parsedJSON]; | ||
var _utils = require('./utils'); | ||
var _utils = require('./utils'); | ||
var _htmlEntities = require('html-entities'); | ||
var entities = new _htmlEntities.AllHtmlEntities(); |
{ | ||
"name": "@rane/web-auto-extractor", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Automatically extracts structured information from webpages", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
17978
274