protected override InnerTextProcessor GetInnerTextProcessor(TextProcessor next, ITagFormatter formatter)
        {
            InnerTextProcessor result = new InnerTextProcessor(next, formatter)
            {
                Tags = new List <HtmlTag>(new HtmlTag[] {
                    new HtmlTag("<ul", "</ul>"),
                    new HtmlTag("<title", "</title>"),
                    new HtmlTag("<strong", "</strong>"),
                    new HtmlTag("<span", "</span>"),
                    new HtmlTag("<small", "</small>"),
                    new HtmlTag("<pre", "</pre>"),
                    new HtmlTag("<p", "</p>"),
                    new HtmlTag("<main", "</main>"),
                    new HtmlTag("<li", "</li>"),
                    new HtmlTag("<html", "</html>"),
                    new HtmlTag("<header", "</header>"),
                    new HtmlTag("<head", "</head>"),
                    new HtmlTag("<h4", "</h4>"),
                    new HtmlTag("<h3", "</h3>"),
                    new HtmlTag("<h3", "</h3>"),
                    new HtmlTag("<h2", "</h2>"),
                    new HtmlTag("<h1", "</h1>"),
                    new HtmlTag("<footer", "</footer>"),
                    new HtmlTag("<em", "</em>"),
                    new HtmlTag("<div", "</div>"),
                    new HtmlTag("<code", "</code>"),
                    new HtmlTag("<body", "</body>"),
                    new HtmlTag("<article", "</article>")
                })
            };

            return(result);
        }
Example #2
0
        protected override InnerTextProcessor GetInnerTextProcessor(TextProcessor next, ITagFormatter formatter)
        {
            InnerTextProcessor result = new InnerTextProcessor(next, formatter)
            {
                Tags = new List <HtmlTag>(new HtmlTag[] {
                    new HtmlTag("<ul", "</ul>"),
                    new HtmlTag("<u", "</u>"),
                    //  Removing tables.
                    new HtmlTag("<td", "</td>"),
                    new HtmlTag("<tr", "</tr>"),
                    new HtmlTag("<tbody", "</tbody>"),
                    new HtmlTag("<table", "</table>"),
                    //  Other tags.
                    new HtmlTag("<time", "</time>"),
                    new HtmlTag("<title", "</title>"),
                    new HtmlTag("<strong", "</strong>"),
                    new HtmlTag("<span", "</span>"),
                    new HtmlTag("<small", "</small>"),
                    new HtmlTag("<pre", "</pre>"),
                    new HtmlTag("<p", "</p>"),
                    new HtmlTag("<main", "</main>"),
                    new HtmlTag("<li", "</li>"),
                    new HtmlTag("<html", "</html>"),
                    new HtmlTag("<header", "</header>"),
                    new HtmlTag("<head", "</head>"),
                    new HtmlTag("<h4", "</h4>"),
                    new HtmlTag("<h3", "</h3>"),
                    new HtmlTag("<h3", "</h3>"),
                    new HtmlTag("<h2", "</h2>"),
                    new HtmlTag("<h1", "</h1>"),
                    new HtmlTag("<footer", "</footer>"),
                    new HtmlTag("<em", "</em>"),
                    new HtmlTag("<div", "</div>"),
                    new HtmlTag("<code", "</code>"),
                    new HtmlTag("<body", "</body>"),
                    new HtmlTag("<blockquote", "</blockquote>"),
                    new HtmlTag("<a", "</a>", new string[] { "href" })
                })
            };

            return(result);
        }