Dummy Blog Post Generator

Dummy Blog Post Generator







Lorem ipsum dolor sit amet consectetur adipiscing elit

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed auctor, magna id malesuada placerat, quam metus rutrum nibh, a bibendum nulla augue vel dolor.

Category: ${category}

`; posts.appendChild(post); } } function downloadXML() { let numPosts = document.getElementById("numPosts").value; let category = document.getElementById("category").value; let posts = document.getElementById("posts"); let postElements = posts.children; let xml = ""; for (let i = 0; i < postElements.length; i++) { let post = postElements[i]; let title = post.querySelector(".title").textContent; let image = post.querySelector("img").src; let category = post.querySelector("p").textContent; xml += ` ${title} ${image} ${category} `; } xml += xml += ""; let a = document.createElement("a"); let file = new Blob([xml], {type: 'text/xml'}); a.href = URL.createObjectURL(file); a.download = "posts.xml"; a.click(); }

Quickly generate dummy content for your website with our Dummy Blog Post Generator. Generate dummy blog posts with our Generate dummy blog post tool.