示例#1
0
        public void RemoveHtmlContent_PostWithList_ListRemoved()
        {
            string postText = "<ul>\n<li>\n<p>libGDX</p>\n</li>\n<li>\n<p>jMonkeyEngine</p>\n</li>\n<li>\n<p>lwjgl</p>\n</li>\n</ul>";

            var result = HtmlCleaner.RemoveHTMLContent(postText);

            Assert.Equal(string.Empty, result);
        }
示例#2
0
        public void RemoveHtmlContent_PostWithQuotes_QuotesRemoved()
        {
            string postText = "<blockquote>cytat</blockquote>nie cytat<blockquote>cytat</blockquote>";

            var result = HtmlCleaner.RemoveHTMLContent(postText);

            Assert.Equal("nie cytat", result);
        }