
## create_text_node {#str}

Creates a Text node given the specified string.


### Returns 


The [`Text`](/html/python-net/aspose.html.dom/text).


```python
def create_text_node(self, data):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| data | str | The text data. |



### See Also
* module [`aspose.html`](../../)
* class [`HTMLDocument`](/html/python-net/aspose.html/htmldocument)
* class [`Text`](/html/python-net/aspose.html.dom/text)
