ogxt-utils demo project

html2ogxt

var utils = require('ogxt-utils');
var ogxt = utils.html2ogxt(html, true);
html
ogxt

annotate

var utils = require('ogxt-utils');
var annotations = {}; // object received after check
var annotatedHtml = utils.annotate(html, annotations);
html
annotations
annotatedHtml

cleanupAnnotations

var utils = require('ogxt-utils');
var cleanHtml = utils.cleanupAnnotations(html);
html
cleanHtml