Skip to content

Added to retrieve using value attribute, fallback.#6

Merged
scottmac merged 2 commits into
scottmac:masterfrom
AramZS:master
Feb 18, 2013
Merged

Added to retrieve using value attribute, fallback.#6
scottmac merged 2 commits into
scottmac:masterfrom
AramZS:master

Conversation

@AramZS

@AramZS AramZS commented Jun 12, 2012

Copy link
Copy Markdown
Contributor

Added an extra if loop to retrieve description values from sites like New York Times who have malformed it by using value instead of content. See http://www.nytimes.com/2012/06/13/world/middleeast/violence-in-syria-continues-as-protesters-killed.html for an example of this bad code.

Also adapted code from https://github.com/bashofmann to create an easy fallback from pages without og tags to pull the title and description meta tags instead.

scottmac added a commit that referenced this pull request Feb 18, 2013
Added to retrieve using value attribute, fallback.
@scottmac scottmac merged commit e1aa5a9 into scottmac:master Feb 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants