private string GetHtmlToken(string content, ref int pos) { int startIndex = pos; while (pos < content.Length) { if (HtmlStringHelper.IsHtmlIdentifierChar(content[pos])) { pos++; } else { break; } } return(content.Substring(startIndex, pos - startIndex)); }