2 ms·
not sure if you figured something out already, but just saw your comment and remembered that this exists in PHP: http://us1.php.net/manual/en/function.get-html
by mh- 12y ago
not sure if you figured something out already, but just saw your comment and remembered that this exists in PHP:
http://us1.php.net/manual/en/function.get-html-translation-table.php http://us1.php.net/manual/en/function.get-html-translation-t...
absent another source, you could dump it out for your usage elsewhere.
% php -r 'print_r(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES|ENT_HTML5));'
or
% php -r 'print json_encode(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES|ENT_HTML5));' | jq .
edit: just found http://dev.w3.org/html5/html-author/charref http://dev.w3.org/html5/html-author/charref (but might be harder to parse..)
- deleted 12y ago[deleted]