Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function comment(s?: string): Comment { return { type: TokenType.Comment, 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.