UNPKG

simple-html-tokenizer

Version:

Simple HTML Tokenizer is a lightweight JavaScript library that can be used to tokenize the kind of HTML normally found in templates.

7 lines (6 loc) • 189 B
import { NamedEntityMap } from './types.js'; export default class EntityParser { private named; constructor(named: NamedEntityMap); parse(entity: string): string | undefined; }