add truncate html

Hi this method truncates html to specific length of words or exact length of words  it can be usefull