html-to-text
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -5,2 +5,10 @@ var path = require('path'); | ||
console.log('fromString:') | ||
var text = htmlToText.fromString('<h1>Hello World</h1>', { | ||
wordwrap: 130 | ||
}); | ||
console.log(text); | ||
console.log(); | ||
console.log('fromFile:'); | ||
htmlToText.fromFile(path.join(__dirname, 'test.html'), { | ||
@@ -7,0 +15,0 @@ tables: ['invoice', 'address'] |
@@ -34,3 +34,3 @@ var fs = require('fs'); | ||
walk(dom); | ||
return result; | ||
return result || dom; | ||
} | ||
@@ -213,7 +213,3 @@ | ||
exports.fromString = function(str, options) { | ||
if (!callback) { | ||
callback = options; | ||
options = {}; | ||
} | ||
return htmlToText(str, options); | ||
return htmlToText(str, options || {}); | ||
}; |
{ | ||
"name": "html-to-text", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Simple html to text converter", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21198
208