Fast & dirty fix (did not tested properly).
In HtmlParser.cs go to method
In HtmlParser.cs go to method
private static bool ParseHtmlTag(string source, int idx, int length, out string name, out Dictionary<string, string> attributes)
Then go to code: attributes = null;
if (!isClosing && idx + length > spaceIdx)
{
ExtractAttributes(source, spaceIdx, length - (spaceIdx - idx), out attributes);
}
return isClosing;
Replace to: var remainingPart = source.Length >= spaceIdx + 1 ? source.Substring(spaceIdx) : string.Empty;
bool closedImmediately = string.IsNullOrEmpty(remainingPart) || remainingPart.Trim().StartsWith("/");
attributes = null;
if (!isClosing && idx + length > spaceIdx && !closedImmediately)
{
ExtractAttributes(source, spaceIdx, length - (spaceIdx - idx), out attributes);
}
return isClosing;