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

html-truncate

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-truncate - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json

@@ -6,3 +6,3 @@ {

"description": "truncate html text and keep tag safe",
"version": "1.0.2",
"version": "1.0.3",
"repository": {

@@ -9,0 +9,0 @@ "type": "git",

# Motivation
Truncate HTML text and also keep tag safe
Truncate HTML text and also keep tag safe.
# CHANGELOG
## NOTICE
Given string is expected to be well-formatted HTML.
## CHANGELOG
| Version | Logs |
|:--|:--|
| 1.0.3 | support browser |
| 1.0.0 | deprecated: truncateLastWord. Also, exports function directly |

@@ -9,0 +13,0 @@ | 0.3.1 | features done |

@@ -63,3 +63,3 @@ var assert = require('assert');

it('should handle non-closed tag such as <img> well', function() {
it('should handle self-closed tag such as <img/> well', function() {
var input, expect, actual;

@@ -66,0 +66,0 @@

/*global module:true*/
/*jslint nomen:true*/
/**
* @module Utility
*/
(function (context, undefined) {

@@ -9,3 +12,2 @@ 'use strict';

*
* @static
* @method truncate

@@ -12,0 +14,0 @@ * @param {String} string string needs to be truncated

Sorry, the diff of this file is not supported yet

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