2.0.16 • Published 5 months ago
html-ellipsis v2.0.16
html-ellipsis
Truncates a html string without messing up HTML tags
npm install --save html-ellipsis
Example
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
5 months ago
2.0.16
5 months ago
2.0.13
8 months ago
2.0.14
8 months ago
2.0.12
9 months ago
2.0.11
10 months ago
2.0.9
1 year ago
2.0.10
1 year ago
2.0.8
1 year ago
2.0.7
1 year ago
2.0.6
2 years ago
2.0.5
3 years ago
2.0.3
3 years ago
2.0.2
3 years ago
2.0.4
3 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