4Converts entity WHATWG HTML5 entity summary into
5Text.HTML.Parser.Entities module.
9 curl https://html.spec.whatwg.org/entities.json | python3 gen_entities.py > src/Text/HTML/Parser/Entities.hs
16entities = json.load(sys.stdin)
19 return ''.join(f'\\x{cp:04x}' for cp in details['codepoints'])
22{-# LANGUAGE OverloadedStrings #-}
24-- | N.B. This file is generated by @gen_entities.py@. Do not edit.
25module Text.HTML.Parser.Entities (entities) where
27import Data.Text (Text)
29entities :: [(Text, Text)]
33 f''' ("{name[1:-1]}", "{escape(details)}")'''
34 for name, details in entities.items()
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list