F# Data


HtmlNode

Namespace: FSharp.Data
Attributes:
[<StructuredFormatDisplay("{_Print}")>]

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

Static members

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

Creates a CData element

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

Creates a comment element

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

Creates an html element

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

Creates an html element

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

Creates an html element

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

Creates an html element

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

Creates a text content element

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

Parses the specified HTML string to a list of HTML nodes

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

Parses the specified HTML string to a list of HTML nodes

Fork me on GitHub