technosophos/querypath — pull request #127 by noisan (2013-10-02 11:42:34+00:00)
Title: Fix wrapInner()

Hi!!

I'd like to suggest this patch.
This PR fixes the following behavior of `wrapInner()`:

Test script:
```php
$qp = qp('

Text A

Text B

');
$qp->find('div')->wrapInner('')->writeXML();
```

Expected result:
```xml

Text A

Text B

```

Actual result:
```xml

Text AText B

```