Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlCssTokenizer

Namespace OfficeIMO.Html.Css
Assembly OfficeIMO.Html.Core
Modifiers static

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: IReadOnlyList<HtmlCssToken>

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 System.String requiredposition: 0
options OfficeIMO.Html.Css.HtmlCssTokenizationOptions = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2