0.2.0 • Published 2 years ago
ember-html-excerpt v0.2.0
ember-html-excerpt
This is a super simple addon that contains exactly one helper {{excerpt}}
which is designed to take a HTML string in and return an "excerpt" of the text
contained in that HTML.
Compatibility
- Ember.js v3.24 or above
- Ember CLI v3.24 or above
- Node.js v12 or above
Installation
ember install ember-html-excerpt
Usage
By Default the excerpt helper will extract the first 50 words from the HTML that is passed in.
TODO: if anyone wants to contribute more details on the API of the excerpt helper any PR would be much appreciated 👍
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.