ContentFiltering.Office.Word.Cleaners.EmptyParagraphsCleaner.Clean C# (CSharp) Method

Clean() public method

Replaces empty paragraphs with line breaks ('<br/>').
public Clean ( string htmlSource ) : string
htmlSource string Initial HTML source.
return string
        public string Clean(string htmlSource)
        {
            htmlSource = htmlSource.Replace("<o:p></o:p>", "<br />");
            htmlSource = htmlSource.Replace("<p>&nbsp;</p>", "<br />");
            return htmlSource;
        }
EmptyParagraphsCleaner