1.0.1 • Published 11 months ago

ember-html-excerpt v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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
  • Embroider or ember-auto-import v2

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.