Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function chars(s?: string): Chars { return { type: TokenType.Chars, chars: s === undefined ? '' : s }; }
Simple HTML Tokenizer is a lightweight JavaScript library that can be used to tokenize the kind of HTML normally found in templates.