Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created August 16, 2016 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/b1a037149a9129309ff47b5d02f10033 to your computer and use it in GitHub Desktop.
Save tmcw/b1a037149a9129309ff47b5d02f10033 to your computer and use it in GitHub Desktop.
var noteElements = s[i].getElementsByTagName('notes');
notes.push([]);
while (noteElements.length) {
var note = noteElements[0];
notes[i].push(note.innerHTML.trim());
note.parentNode.removeChild(note);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment