Cutter.js - 按字数截取HTML内容不会丢失标签的JS库
jopen
12年前
Cutter.js是一个JS库用于截断HTML代码限制其长度,而不会丢失标签。
特性
- 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
Requirements: None
Demo:http:/ / tcorral. github. com/ Cutter. js/ #examples
License: MIT License