I have an html text string and also start index and end index of its text form (without HTML). Like -
var htmlstr = "Lorem ipsum dolor