mirror of
https://github.com/encounter/phantomjs.git
synced 2026-07-10 21:18:40 -07:00
Merge branch 'patch-4' of https://github.com/nwiechmann/phantomjs into nwiechmann-patch-4
This commit is contained in:
@@ -16,7 +16,12 @@ See also `page.plainText` to get the content without any HTML tags.
|
||||
```javascript
|
||||
var webPage = require('webpage');
|
||||
var page = webPage.create();
|
||||
// @TODO: Finish page.content example.
|
||||
|
||||
page.open('http://phantomjs.org', function (status) {
|
||||
var content = page.content;
|
||||
console.log('Content: ' + content);
|
||||
phantom.exit();
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user