ASP.NET WEB FORMS Remove a p and its contents from a DIV

0

I have several DIVS that contains a < p > & nbsp; < / p & gt ;. How do I remove this paragraph with space in CodeBehind? (Without using JS or JQuery)

    
asked by anonymous 12.03.2015 / 15:34

1 answer

0

I've already figured it out.

 (OBJETO).Text = Regex.Replace((OBJETO).Text, "<p>&nbsp;</p>", "", RegexOptions.Singleline)

;)

    
12.03.2015 / 21:03