asp.net - How to decode html string -


i have string:

<p>&nbsp;item1</p><br><p>item2</p> 

i getting editor . want convert :

item1 item2 

how can ?

you can use regular expression &(.*);

in c# like

  string pattern = @"&(.*);";   string replacement = "";   string input = "<p>&nbsp;item1</p><br><p>item2</p>";   string result = regex.replace(input, pattern, replacement);   console.writeline(result); 

Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -