export function extractImagesAndText(htmlString) {
    const parser = new DOMParser();
	const doc = parser.parseFromString(htmlString, "text/html");
	const images = Array.from(doc.querySelectorAll("img")).map(img => img.src);
	const text = doc.body.textContent.trim();
	const data = {
		images,
		text
	};
	const jsonData = JSON.stringify(data);
	return jsonData;
}