diff --git a/package.json b/package.json index ceb27ec..e3017d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "truncate-html", - "version": "0.0.4", + "version": "0.0.5", "description": "truncate html and keep tags in safe", "main": "lib/truncate.js", "scripts": { diff --git a/readme.md b/readme.md index a6ce284..dae8d4f 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,7 @@ # Truncate-html Truncate html string and keep tags in safe. You can custom ellipsis sign, ignore unwanted elements. -**Notice** This is a node modules depends on cheerio *can only run on nodejs*. If you need a browser version, you may consider [truncate](https://github.com/pathable/truncate) or [nodejs-html-truncate](https://github.com/huang47/nodejs-html-truncate). +**Notice** This is a node module depends on cheerio *can only run on nodejs*. If you need a browser version, you may consider [truncate](https://github.com/pathable/truncate) or [nodejs-html-truncate](https://github.com/huang47/nodejs-html-truncate). ## Method ```js @@ -12,9 +12,9 @@ truncate(html, [length], [options]) ``` { length: Number, content length to truncate - stripTags: Boolean, whether remove tags + stripTags: Boolean, whether to remove tags ellipsis: String, custom ellipsis sign, set it to empty string to remove the ellipsis postfix - excludes: String or Array, the seletor of the elements you want to ignore + excludes: String or Array, the selectors of the elements you want to ignore } ```