将<b>
和</b>
替换为空格“”将<br>
替换为\ n
var a = "Welcome to xyz. You have been added as a manager by <b>Adam </b>.<br><br><b>Dashboard Link:</b> https://app.xyz.com <br><br>Use the credentials below to sign-in: <br><b>Username : </b>a@k.com<br><b>Password : </b>qwerty";
var b = a.replace("<b>|</b>"," ").replace("<br>","\n");
console.log(b);