public HtmlTag(string tag, HtmlTag parent) : this(tag) { if (parent != null) { parent.Append(this); } }
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); }