/// <summary> /// Add to current tag - <see cref="TagWrapper"/> inner item /// </summary> /// <param name="tag"><see cref="TagWrapper"/></param> /// <param name="innerTag"><see cref="TagWrapper"/> inner item</param> /// <returns>Changed <see cref="TagWrapper"/></returns> public static TagWrapper InnerHtml(this TagWrapper tag, TagWrapper innerTag) { if (innerTag != null) { tag.InnerHtml(innerTag.ToString()); } return(tag); }
/// <summary> /// Creates <see cref="MvcHtmlString"/> from <see cref="TagWrapper"/> /// </summary> /// <param name="tag"><see cref="TagWrapper"/></param> /// <returns><see cref="MvcHtmlString"/></returns> public static MvcHtmlString ToHtmlString(this TagWrapper tag) { return(new MvcHtmlString(tag.ToString())); }