Example #1
0
 public HtmlTag(string tag, HtmlTag parent) : this(tag)
 {
     if (parent != null)
     {
         parent.Append(this);
     }
 }
Example #2
0
        public HtmlTag WrapWith(string tag)
        {
            var wrapper = new HtmlTag(tag);

            wrapper.Append(this);

            // Copies visibility and authorization from inner tag
            wrapper.Render(Render());
            wrapper.Authorized(Authorized());

            return(wrapper);
        }