Add code to the example

gh-pages
Nate Good 2014-08-27 20:58:18 -04:00
parent c0f6859f26
commit b7115ddea0
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();
});
```