<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

# node

Intermediary representation of an HTML node.

**Properties**

-   `name` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Tag name.
-   `props` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Dictionary of attributes and theirs values.
-   `children` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;(VNode | [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String))>** Array of already processed nodes.

# preprocessor

Node preprocessor

**Parameters**

-   `node`  

Returns **[node](#node)** 

# createFromHTML

Parse string of html tags and create VNodes using Inferno's
`createElement`.

**Parameters**

-   `s` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** HTML text to parse.
-   `userParams` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** User-provided parameters to alter result.
    -   `userParams.multipleNodes` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** If true, do not throw exceptions
        when number of resulting nodes differs from one, return array of nodes
        instead.
    -   `userParams.preprocess` **[preprocessor](#preprocessor)** Function to apply to nodes
        before passing them to `createElement`.
    -   `userParams.parserParams` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Parameters to `htmlparser2`. See
        <https://github.com/fb55/htmlparser2/wiki/Parser-options> for reference.

Returns **([Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) | ([Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)>))** VNode(s)
