html2jsonml library

Functions

encodeToJsonML(String html) → List
Takes a valid HTML5 String, parses it (via the html5lib library) and encodes the resulting tree as JsonML. Returns the JsonML Object (usually a List). This object is guaranteed to be a valid input for JSON.encode().