Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dsheets/polyglot
Conversion tool and OCaml library for polyglot HTML5/XML
https://github.com/dsheets/polyglot
Last synced: 3 months ago
JSON representation
Conversion tool and OCaml library for polyglot HTML5/XML
- Host: GitHub
- URL: https://github.com/dsheets/polyglot
- Owner: dsheets
- Created: 2015-06-06T15:36:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-29T01:01:04.000Z (over 9 years ago)
- Last Synced: 2023-03-10T21:57:36.127Z (almost 2 years ago)
- Language: OCaml
- Size: 168 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
Awesome Lists containing this project
README
# polyglot
**polyglot** is a filter to convert XHTML into polyglot HTML5. It's a
command and a MirageOS-compatible OCaml library.To use **polyglot** from the command line, just
```
$ polyglot < input.xhtml > output.html
```and `input.xhtml` will be converted to polyglot HTML5 with the result sent
to `output.html`.## Modifications
`polyglot` will convert non-void HTML elements into empty rather than
self-closing tags.`polyglot` will introduce an HTML5 DTD if one is not already present.