function renderItemText(oRm, sText, sSearch){
		var i;
		if (sText) {
			i = sText.toUpperCase().indexOf(sSearch.toUpperCase());
			if (i > -1){
				oRm.writeEscaped(sText.slice(0, i));
				oRm.write("<b>");
				oRm.writeEscaped(sText.slice(i, i + sSearch.length));
				oRm.write("</b>");
				sText = sText.substring(i + sSearch.length);
			}
			oRm.writeEscaped(sText);
		}
	}
function renderItemText(oRm, sText, sSearch){
		var i;
		if (sText) {
			i = sText.toUpperCase().indexOf(sSearch.toUpperCase());
			if (i > -1){
				oRm.writeEscaped(sText.slice(0, i));
				oRm.write("<b>");
				oRm.writeEscaped(sText.slice(i, i + sSearch.length));
				oRm.write("</b>");
				sText = sText.substring(i + sSearch.length);
			}
			oRm.writeEscaped(sText);
		}
	}
function renderItemText ( oRm , sText , sSearch ) { var i ; if ( sText ) { i = sText . toUpperCase ( ) . indexOf ( sSearch . toUpperCase ( ) ) ; if ( i > - 1 ) { oRm . writeEscaped ( sText . slice ( 0 , i ) ) ; oRm . write ( "<b>" ) ; oRm . writeEscaped ( sText . slice ( i , i + sSearch . length ) ) ; oRm . write ( "</b>" ) ; sText = sText . substring ( i + sSearch . length ) ; } oRm . writeEscaped ( sText ) ; } }
Render output text to make occurrences of the search text value bold:
Render output text to make occurrences of the search text value bold :
Renders the given text