CSHTMLTokenizer tokenizes CSHTML into tokens. For now (V0.1.4) only HTML is tokenized. Tokenization is done based on the HTML Tokenization spec. Only those parts that are relevant to CSHTML tokenization is supported:
- Data
- Tags
- Attributes
- Variables in attributes @
- Statements in attributes @(...)
- Classes
- Declarations
var tokens = Tokenizer.Parse("This is a test!<br>This is a <b n='v'>bold</b>");