How to display HTML_TEXT as Plain_text in Windows Phone 8?
In my application, I am displaying RSS_FEEDS in a ListView that contains two text boxes, one for the title and one for the description. But in case of description, I get Html_text and it is displayed as is. Suggest how to remove tags. I tried to use regular expressions, but it removes the tag, but does not remove the tags nbsp , . Also suggest if there is a tag then I want to show it on a new line. Please find my code below:
private string getplain_text(string p)
{
string plain_text = string.Empty;
plain_text = Regex.Replace(p, "\\<[^\\>]*\\>", string.Empty);
return plain_text;
}
Good answers awaiting.
thank
+3
source to share