
## replace_whole_text {#str}

Replaces the text of the current node and all logically-adjacent text nodes with the specified text. All logically-adjacent text nodes are removed including the current node unless it was the recipient of the replacement text.


### Returns 


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


```python
def replace_whole_text(self, content):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | The content. |



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