From 2bfc2f12c5a17ac7fdf06e321b7e72af763ec1f7 Mon Sep 17 00:00:00 2001 From: nwiechmann Date: Sun, 16 Mar 2014 11:02:43 +0100 Subject: [PATCH] Update 2000-01-01-content.md Finished page.content example. --- _posts/api/webpage/property/2000-01-01-content.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/_posts/api/webpage/property/2000-01-01-content.md b/_posts/api/webpage/property/2000-01-01-content.md index 1de26aec..2c2c3bb9 100644 --- a/_posts/api/webpage/property/2000-01-01-content.md +++ b/_posts/api/webpage/property/2000-01-01-content.md @@ -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(); +}); ```