I'm working the InstaPaper API
I'm using this string to pull the content of the article.
$Bookmark_Text = $connection->getBookmarkText($Bookmark['bookmark_id']);
Unfortunately it is pulling the entire html and basically putting the HTML structure in my HTML.
Example.
<html>
<head></head>
<body>
<html>
<head>Instapaper Title</head>
<body>InstaPaper Article Content</body>
</html>
</body>
</html>
Any thoughts on how to just get "Instapaper article content"
Thanks!
Use a parser to extract the contents of
<body>
. PHP has some built in, but there are others out there which might be easier to use.This should do it if
$Bookmark_Text
is a valid HTML document.