Skip to content

Added to retrieve using value attribute, fallback. #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 18, 2013

Conversation

AramZS
Copy link
Contributor

@AramZS AramZS commented Jun 12, 2012

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