how to remove &nbsp; and <br> using javascript or jQuery?

Posted by shaz on Stack Overflow See other posts from Stack Overflow or by shaz
Published on 2010-03-25T08:02:26Z Indexed on 2010/03/25 8:13 UTC
Read the original article Hit count: 351

Filed under:
|

I have written the following code. But it is removing only &nbsp; not <br>

var docDesc = docDescription.replace(/(&nbsp;)*/g,"");
var docDesc1 = docDescription.replace(/(<br>)*/g,"");

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery