WeiranZhang.Metropaper.Controls.NewHtmlBlock.DecodeAndCleanupHtml C# (CSharp) Method

DecodeAndCleanupHtml() private method

private DecodeAndCleanupHtml ( string html ) : string
html string
return string
        private string DecodeAndCleanupHtml(string html)
        {
            // this breaks the designer somehow
            StringBuilder builder = new StringBuilder();
            builder.Append(HttpUtility.HtmlDecode(html));
            builder.Replace(" ", " ");
            //builder.Replace("\n", " ");

            return builder.ToString();
        }