html-to-text
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -25,3 +25,8 @@ var _ = require('underscore'); | ||
function formatAnchor(elem, fn, options) { | ||
return elem.attribs.href.replace(/^mailto\:/, ''); | ||
if (elem.attribs && elem.attribs.href) { | ||
return elem.attribs.href.replace(/^mailto\:/, ''); | ||
} | ||
else { | ||
return helper.wordwrap(helper.decodeHTMLEntities(_s.strip(elem.raw)), options.wordwrap); | ||
} | ||
}; | ||
@@ -139,2 +144,2 @@ | ||
exports.listItem = formatListItem; | ||
exports.horizontalLine = formatHorizontalLine; | ||
exports.horizontalLine = formatHorizontalLine; |
{ | ||
"name": "html-to-text", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Simple html to plain text converter", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# node-html-to-text | ||
A simple converter that parses HTML and returns beautiful text. It was mainly designed to transform HTML E-Mail templates to a text representation. So it is currently optimized for table layouts. | ||
An advanced converter that parses HTML and returns beautiful text. It was mainly designed to transform HTML E-Mail templates to a text representation. So it is currently optimized for table layouts. | ||
@@ -5,0 +5,0 @@ ### Features: |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
27764
11
359