lib/modules/apostrophe-areas/public/js/splitHtml.js
function cleanup(html) {
      html = cheerio.load(html);
      html('[' + ignoreAttr + ']').removeAttr(ignoreAttr);
      html = html.html();
      return html;
    }
function cleanup(html) {
      html = cheerio.load(html);
      html('[' + ignoreAttr + ']').removeAttr(ignoreAttr);
      html = html.html();
      return html;
    }
function cleanup ( html ) { html = cheerio . load ( html ) ; html ( '[' + ignoreAttr + ']' ) . removeAttr ( ignoreAttr ) ; html = html . html ( ) ; return html ; }
Use Cheerio to strip out any attributes we used to keep track of our work, then generate new HTML. This also closes any tags we opened but did not close.
Use Cheerio to strip out any attributes we used to keep track of our work then generate new HTML . This also closes any tags we opened but did not close .