# HTML to object

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-16fe17ef234f0a75f66653bd0d591d691075f801%2Fimage%20\(116\).png?alt=media)

Element that converts HTML to an object and searches it. If XPath is specified, the result will be of AngleSharp.Dom.INode type, otherwise it will be of AngleSharp.Html.Parser.IHtmlDocument type.

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-49288d4984443dc964c0fa26651cdef752b6e51f%2F1%20\(35\).png?alt=media)

Properties

\- Variable\*: \[AngleSharp.Dom.INode / AngleSharp.Html.Parser.IHtmlDocument] Variable that gets the search result '<https://github.com/AngleSharp/AngleSharp>'

\- Data\*: \[String] HTML String

\- XPath: \[String] XPath expression string '<https://ru.wikipedia.org/wiki/XPath>'
