I have a following question from my last post.
I want to store each node as full html markup.
The data array should be something like
['<em>test</em>', 'here for the testing purpose',
'second line', '<strong>texts</strong>', 'here']
The codes I have now:
if(this.nodeType === 3) { // Will only select element nodes
data.push($(this).text());
}else if(this.nodeType === 1){
data.push($(this).html());
}
but it only store
['test', 'here for the testing purpose','texts','here']
Is it possible to store the html markup as well?
Thanks so much!
[...]not(...)