AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.16.0" />

 CssStringSourceExtensions

public static class CssStringSourceExtensions
Contains some useful extension methods for the StringSource from the perspective of the CSS micro parsers.
public static string ConsumeEscape(this StringSource source)

Consumes the escape sequence if any. Assumes, the source currently being at a solidus (valid escape).

public static bool IsValidEscape(this StringSource source)

Checks if the current position holds a valid escape.

public static char SkipCssComment(this StringSource source)

Skips all characters to the end of a CSS comment. Assumes the start of a CSS comment has been seen.