Class
HtmlCssTokenizer
OfficeIMO.Html.Css
Tokenizes CSS without a parser provider, resource loading or property validation.
Inheritance
- object
- HtmlCssTokenizer
Methods
public static IReadOnlyList<HtmlCssToken> Tokenize(string source, HtmlCssTokenizationOptions? options = null, CancellationToken cancellationToken = default) #Returns immutable tokens, preserving comments, declaration order and original source spans. Escapes, nulls, unpaired surrogates and newlines are normalized in decoded values only. A canceled or budget-exhausted operation publishes no partial token list.
Parameters
- source string
- options OfficeIMO.Html.Css.HtmlCssTokenizationOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IReadOnlyList<HtmlCssToken>