Example #1
0
        protected Tag ParseMiscText()
        {
            System.Text.StringBuilder builder = new System.Text.StringBuilder();
            while (Peek() != '<')
            {
                builder.Append(Step());
            }
            string res             = builder.ToString();
            Regex  stripWhiteSpace = new Regex(@"\s+");

            res = stripWhiteSpace.Replace(res, " ");
            Tag tag = new Tag()
            {
                type = "textnode"
            };

            tag.AddAttribute("innerText", res);
            return(tag);
        }