Skip to content

Commit

Permalink
This is 1.0.4 version.
Browse files Browse the repository at this point in the history
I've added support of OG Image handle and parser now can return pure response result.
  • Loading branch information
Ivanov Dmitry committed Jun 11, 2017
1 parent 7c4ef31 commit 9b9f7b5
Show file tree
Hide file tree
Showing 6 changed files with 1,236 additions and 19 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,21 @@ $parser->parse($url)

For getting a result of parsing there is one method:

**getResult** - Returns needle ParsingResult object
* **getResult** - Returns needle ParsingResult object

There are a few methods in this object:

**setTitle** - Set new title
**setContent** - Set new content
**getTitle** - The title of result
**getContent** - The content of result. It can be already cleaned if you specify it in configs.
**isEmpty** - Is it empty object (without data) or not?
**stripContent** - Manually strip content from tags
**cleanContent** - Manually clean content from strange classes, ID's and style blocks in the parsed HTML
* **setTitle** - Set new title
* **setContent** - Set new content
* **setImage** - Set main image for the content
* **setOriginal** - Save original response
* **getTitle** - The title of result
* **getContent** - The content of result. It can be already cleaned if you specify it in configs.
* **getImage** - Returns URL to the OG Image or empty string
* **getOriginal** - Just returns service\script original response
* **isEmpty** - Is it empty object (without data) or not?
* **stripContent** - Manually strip content from tags
* **cleanContent** - Manually clean content from strange classes, ID's and style blocks in the parsed HTML

## Extending

Expand Down
Loading

0 comments on commit 9b9f7b5

Please sign in to comment.