```
element = Oga::XML::Element.new(:name => 'div')
some_node.replace(element)
```
You can also pass a `String` to `replace` and it will be replaced with
a `Oga::XML::Text` node
```
some_node.replace('this will replace the current node with a text node')
```
closes #115
|
||
|---|---|---|
| .. | ||
| oga | ||
| support | ||
| spec_helper.rb | ||