method of static class JsNgram

Description

Generate html with text hilighted.

Example
JsNgram.makeTextHilighted('The cat is found', 4, 3, 10);
// 'he <b>cat</b> is '
      
Usage

makeTextHilighted(text, at, hiLen, outLen);

Argument text is a full text string. Argument at is a beginning position of the keyword that is to be hilighted. Argument hiLen is a hilight length. Argument outLen is a text length for output.

The hilight characters are done with html b tag. Output text is html escaped. Text is cut with ignoring word breaks.