asp.net - How to decode html string -
i have string:
<p> 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> item1</p><br><p>item2</p>"; string result = regex.replace(input, pattern, replacement); console.writeline(result);
Comments
Post a Comment