Cutter.js - A Library For Truncating HTML Code By Word Number Without Losing Markup
Join the DZone community and get the full member experience.Join For Free
cutter.js is a library used for truncating html code to limit its length, by word number, without losing the markup. cutter solves the problem when its needed to cut some content by a number of words but its mandatory no lose any markup. cutter cuts the content to the number of requested words and if needed puts a link to open the full content again.
- no markup is lost.
- framework agnostic.
- the content can be written without take care about the full content.
- not needed to have two different contents.
- ie >= 6
- firefox >= 3
- safari >= 4
- google chrome >= 4
- opera >= 9.5
demo: http:/ / tcorral. github. com/ cutter. js/ #examples
license: mit license
Published at DZone with permission of Hirvesh Munogee, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.