var string = '<div class="class1">text1</div>' +
'<div class="class2">text2</div>' +
'<div class="class3">text3</div>';
text1, text2, text3
), в виде массива? const div = document.createElement('div');
div.innerHTML = str;
const arr = Array.from(div.children, n => n.innerText);
const arr = Array.prototype.map.call(
new DOMParser().parseFromString(str, 'text/html').body.children,
n => n.textContent
);
const arr = [];
for (const n of document.createRange().createContextualFragment(str).children) {
arr.push(n.innerHTML);
}