Closed
Description
There's other ways of achieving this but in keeping with the existing method format...
The existing result += text[i]; kills performance when parsing larger html blocks.
public static string SubstringBetween(this char[] text, int startIndex, int endIndex)
{
var result = new StringBuilder();
for (var i = startIndex; i < endIndex; i++)
{
result.Append(text[i]);
}
return result.ToString();
}