shopify formatter
by codemeasandwich
JavaScript
const x = "<p><span></span><span></span><span><strong>Collar:</strong> O-Neck</span><br /><span><strong>Sleeve Style:</strong> Regular</span><span></span><br /><span><strong>Material:</strong> Cotton</span><br /><span><strong>Pattern Type:</strong> Print</span><br /><span><strong>Hooded:</strong> No</span><br /><span><strong>Sleeve Length(cm):</strong> Short</span><span></span></p>"
console.log(x.split("<br />").join("</li><li>").replace(/p>/g,"li>").split("</strong>").join("</span><span>").replace(/<strong>/g,"").split("<li>").join("\r\n<li>"))