Merge pull request #12513 from nategood/patch-1

Add code for the plainText example
gh-pages
Ariya Hidayat 2014-08-27 22:17:02 -07:00
commit cdc49ebd05
1 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,11 @@ See also: `page.content` which returns the content with element tags.
```javascript
var webPage = require('webpage');
var page = webPage.create();
// @TODO: Finish page.plainText example.
page.open('http://phantomjs.org', function (status) {
console.log('Stripped down page text:\n' + page.plainText);
phantom.exit();
});
```