c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
JQuery

How to remove &nbsp from texteditor in jQuery?

| | JQuery

When I bind to a texteditor css design was collapsed because of   .so that I would like to remove any   from the block of HTML.

Example:

var htmlstring =   $("#textareaCode").html().replace(/( )*/g, "");

 

this code working fine.