Content is
Hello World.
hello World
This will find you all those strips of the text containing  :
<[^>]+? [^<]+?>
Fropm here you can just do a simple string replaces with the space since Regex will give you the lcoation ofthe match in your text.
string A = HttpContext.Current.Server.HtmlDecode(Text);
string A = Text.Replace(" "," ");
string A = Text.Replace("&nbsp;", " ");
↑ &nbsp;
It's simple
youString.Replace(" ", " ");
String class http://msdn.microsoft.com/en-us/library/system.string.aspx
Replace method http://msdn.microsoft.com/en-us/library/fk49wtc1.aspx
For me the best is :
Imports System.Web
HttpUtility.HtmlDecode(codeHtml)
Can you try searching for
(?<=<[^>]*)
and replacing it with a single space?
This looks for
inside tags (preceded by a <
and possibly other characters except >
).
This is extremely brittle, though. For example, it will fail if you have <
/>
symbols in strings/attributes. Better avoid getting those
into the wrong locations in the first place.
just Replace   to string.Empty after Text Like Below..
xyz.Text.Replace(" ", string.Empty);