2.0.16 • Published 1 year ago
html-ellipsis v2.0.16
html-ellipsis
Truncates a html string without messing up HTML tags
npm install --save html-ellipsisExample
var ellipsis = require('html-ellipsis');
var text = 'Lorem <span class="ipsum"><b>ips<i>um</i></b></span>';
console.log(ellipsis(text, 11, true)); // Lorem <span class="ipsum"><b>ips<i>u</i></b></span>…License
See LICENSE
2.0.15
1 year ago
2.0.16
1 year ago
2.0.13
1 year ago
2.0.14
1 year ago
2.0.12
1 year ago
2.0.11
2 years ago
2.0.9
2 years ago
2.0.10
2 years ago
2.0.8
2 years ago
2.0.7
2 years ago
2.0.6
2 years ago
2.0.5
3 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.4
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.1.1
10 years ago
1.1.0
11 years ago
1.0.0
11 years ago