Answers for "replace br with space javascript"

0

javascript replace <br> with n

var str = $("#mydiv").html();
var regex = /<br\s*[\/]?>/gi;
$("#mydiv").html(str.replace(regex, "\n"));
Posted by: Guest on July-29-2020
0

javascript replace spaces with br

str = str.replace(/\s/g, "<br>");
Posted by: Guest on November-16-2020

Code answers related to "replace br with space javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language