that detected as single word and it try to include <br/> into it but calculate word end wrongly
in fact it should not include the tag inside word at all
it should break a word with html-tags inside into a number of words between this tags
and if in some of them only spaces and non-word chars it should just exclude them
For example
cleaned from HTML text is
that detected as single word and it try to include
<br/>
into it but calculate word end wrongly in fact it should not include the tag inside word at allit should break a word with html-tags inside into a number of words between this tags
and if in some of them only spaces and non-word chars it should just exclude them