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 Freecutter.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.
features
- 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.
browser support
- ie >= 6
- firefox >= 3
- safari >= 4
- google chrome >= 4
- opera >= 9.5
requirements:
none
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.
Trending
-
Comparing Cloud Hosting vs. Self Hosting
-
Operator Overloading in Java
-
What Is Envoy Proxy?
-
Avoiding Pitfalls With Java Optional: Common Mistakes and How To Fix Them [Video]
Comments