I am trying to remove these "," from my HTML. I have tried .replace(",", ""), .join() and other methods but to no success.
Here is what it looks like in the console and on my page, notice the commas:

Here is my code:
var featuresArray = jQuery(".Features").siblings().children("p").text().replace(",", "").split("\n");
var boom = featuresArray.map(function (item, index) {
return '<li>'+item+'</li>';
});
var features = boom;
printWindow.document.write("<p class='product-attribute'>"+'Features: ' + '<ul class="product-attribute-details">' + features + "</ul></p>");
How can I remove these commas from my UL ?
featuresArrayin the question?,characters, you need to use a regular expression:.replace(/,/g, ""). Also, if you call.join(), that will add,between all of the strings that are being joined - you're looking for.join("")