Javascript – Cheerio replace Tag values <h1> to <h2> and retain innerText
I thought this would be simple but its causing me some issue in simpley replacing tag valuse with another. I am taking HTML code, and adding className to each H tag but I also need to change the to all…