var course_html=new_html.replace(/ /ig,"<br/>"); var str_h_zz=str_l_zz.replace("|","<br/>");