I want a javascript function to replace all the b's with an html <br />
tag but it's only printing <br>
.
Here is the function:
var destination = source.replace(/b/g,"<br \/>");
It doesn't work, is it wrong? If so, could someone please show me how to do it?