var refresh = '<div id="block3232">text2</div>'; var refr = refresh.replace(/(\<(\/?[^>]+)>)/g, ''); alert(refr);
document.getElementById(blockid).innerHTML=refr;