JSFiddle - React, Tailwind, and code Playground

JavaScript

var str = "Addendum 5 changes the following:<div><br></div>div<br>div&gt;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Addenda 5 - Landscape<br><br><br><br><br><br>&nbsp;<br>Item";

var r = new RegExp("(<br>\\s*){2,}");

console.log("old value: " + str);
console.log("new value: " + str.replace(r, "<br>"));