Skip to content

Instantly share code, notes, and snippets.

@szmeku
Last active August 29, 2015 14:08
Show Gist options
  • Save szmeku/27a8e6be928a53c3a10b to your computer and use it in GitHub Desktop.
Save szmeku/27a8e6be928a53c3a10b to your computer and use it in GitHub Desktop.
var rows = [];
Array.prototype.forEach.call(groups, function(group){
var header = group.querySelector('#name');
if(header){
rows.push('*** ' + header.textContent);
var tasks = group.querySelectorAll('.task .title');
Array.prototype.forEach.call(tasks, function(task){
rows.push(task.textContent);
});
}
});
var txtString = rows.join("\n");
console.log(txtString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment