html-truncate
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
18665
239
115
1