Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-to-text

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-to-text - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

test.js

9

lib/formatter.js

@@ -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:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc