Open.Core.Html.OuterHtml C# (CSharp) Method

OuterHtml() public static method

Retreives the OuterHtml of the given element.
public static OuterHtml ( jQueryObject element ) : string
element jQueryObject The element to retrieve the HTML for.
return string
        public static string OuterHtml(jQueryObject element)
        {
            if (element == null) return null;
            return CreateDiv().Append(element.Clone()).GetHtml();
        }