AddTag() private method

private AddTag ( string sTag, short usID, short usDataID ) : bool
sTag string
usID short
usDataID short
return bool
Exemplo n.º 1
0
        public HTMLparser()
        {
            // init heuristics engine
            oHE.AddTag("a", "href");
            oHE.AddTag("b", "");
            oHE.AddTag("p", "class");
            oHE.AddTag("i", "");
            oHE.AddTag("s", "");
            oHE.AddTag("u", "");

            oHE.AddTag("td", "align,valign,bgcolor,rowspan,colspan");
            oHE.AddTag("table", "border,width,cellpadding");
            oHE.AddTag("span", "");
            oHE.AddTag("option", "");
            oHE.AddTag("select", "");

            oHE.AddTag("tr", "");
            oHE.AddTag("div", "class,align");
            oHE.AddTag("img", "src,width,height,title,alt");
            oHE.AddTag("input", "");
            oHE.AddTag("br", "");
            oHE.AddTag("li", "");
            oHE.AddTag("ul", "");
            oHE.AddTag("ol", "");
            oHE.AddTag("hr", "");
            oHE.AddTag("h1", "");
            oHE.AddTag("h2", "");
            oHE.AddTag("h3", "");
            oHE.AddTag("h4", "");
            oHE.AddTag("h5", "");
            oHE.AddTag("h6", "");
            oHE.AddTag("font", "size,color");
            oHE.AddTag("meta", "name,content,http-equiv");
            oHE.AddTag("base", "href");

            // these are pretty rare
            oHE.AddTag("script", "");
            oHE.AddTag("style", "");
            oHE.AddTag("html", "");
            oHE.AddTag("body", "");
        }