I make div as editable. while i tried to parse div's text, i was needed to do the below regular expression.
innerDOM = "<div style="cursor: text;">I had downloaded all the material from the Intern,<br>You will find</div><div style="cursor: text;"> </div><div style="cursor: text;">dfvdfvdvdfvdfvdvdvdf</div><div style="cursor: text;"> </div><div style="cursor: text;">dfvdfvdvdfvdfvdfvdfvd</div>"
innerDOM.replace(/<div style="cursor: text">/g, "<br>").replace(/<\/div>/g, "");
Above regular expression works good in firefox and chrome. But not in IE. What changes should i do?
See this FIDDLE for better understanding...
. But working good in IE and Chrome. I get that string using $("#div-edit").html(). – user10 Oct 10 '12 at 14:10