以冒号和<br>分割的字符串拼接
<script>
var content = $("#temp").val();
content = content.replace(/<br \/>/g,"<br/>");
content = content.replace(/<BR\/>/g,"<br/>");
content = content.replace(/<BR \/>/g,"<br/>");
var array = content.split("<br/>");
for(var i=0; i<array.length; i++){
if(array[i].indexOf(":")==-1){
document.write(array[i]+"<br/>");
}else{
if(array[i].split(":")[1]!=""){
document.write(array[i]+"<br/>");
}
}
}
</script>