F# Data


HtmlNode

Namespace: FSharp.Data

Represents an HTML node. The names of elements are always normalized to lowercase

Static members

Static memberDescription
NewCData(content)
Signature: content:string -> HtmlNode

Creates a CData element

NewComment(content)
Signature: content:string -> HtmlNode

Creates a comment element

NewElement(name, attrs, children)
Signature: (name:string * attrs:seq<string * string> * children:seq<HtmlNode>) -> HtmlNode

Creates an html element

NewElement(name, children)
Signature: (name:string * children:seq<HtmlNode>) -> HtmlNode

Creates an html element

NewElement(name, attrs)
Signature: (name:string * attrs:seq<string * string>) -> HtmlNode

Creates an html element

NewElement(name)
Signature: name:string -> HtmlNode

Creates an html element

NewText(content)
Signature: content:string -> HtmlNode

Creates a text content element

Parse(text)
Signature: text:string -> HtmlNode list

Parses the specified HTML string to a list of HTML nodes

ParseRooted(rootName, text)
Signature: (rootName:string * text:string) -> HtmlNode

Parses the specified HTML string to a list of HTML nodes

Fork me on GitHub