---
title: "replaceWholeText(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/domtext/replacewholetext(_:)"
---

# replaceWholeText(_:)

## Declaration

```swift
func replaceWholeText(_ content: String!) -> DOMText!
```
