@nfrasser/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.
18 lines (16 loc) • 588 B
text/typescript
/**
* generated from https://raw.githubusercontent.com/w3c/html/26b5126f96f736f796b9e29718138919dd513744/entities.json
* do not edit
*/
const HTML5NamedCharRefs = {
// We don't need the complete named character reference because linkifyHtml
// does not modify the escape sequences. We do need so that
// whitespace is parsed properly. Other types of whitespace should already
// be accounted for. > < and " are also frequently relevant ones
amp: "&",
gt: ">",
lt: "<",
nbsp: " ",
quot: "\""
};
export default HTML5NamedCharRefs;