js替换内容中的<br>标签

111 阅读1分钟
function replaceBR(content){
    content = content.replace(/<br\s*\/?>/g, ",");
    return content
}