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 1.1.0 to 1.1.1

18

lib/formatter.js

@@ -13,12 +13,12 @@ var _ = require('underscore');

function formatImage(elem, options) {
var result = '';
if (elem.attribs.alt) {
result += elem.attribs.alt;
var result = '', attribs = elem.attribs || {};
if (attribs.alt) {
result += attribs.alt;
if (attribs.src) {
result += ' ';
}
}
if (elem.attribs.alt && elem.attribs.src) {
result += ' ';
if (attribs.src) {
result += '[' + attribs.src + ']';
}
if (elem.attribs.src) {
result += '[' + elem.attribs.src + ']';
}
return (result);

@@ -168,3 +168,3 @@ }

row = _.map(row, function(col) {
return col || '';
return col || '';
});

@@ -171,0 +171,0 @@ table.push(row);

{
"name": "html-to-text",
"version": "1.1.0",
"version": "1.1.1",
"description": "Advanced html to plain text converter",

@@ -5,0 +5,0 @@ "main": "index.js",

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