Do you have solution to substring text with HTML tags in Javascript?
For example:
var str = \'Lorem ipsum dolor sit
Javascript has a sub-string method. It makes no difference if the string contains html.
see http://www.w3schools.com/jsref/jsref_substr.asp