huyha85 / opengraph_parser

Simple Ruby Parser library for parsing OpenGraph protocol (http://ogp.me)
MIT License
59 stars 28 forks source link

Add extra fallback for description. #10

Closed danhper closed 9 years ago

danhper commented 9 years ago

Hi,

Some websites do not have any description meta, and when using fallback it is often better to have some kind of result that nothing at all, so I added a behavior similar to Facebook OpenGraph debugger, where it seems to take the content of the first long enough paragraph.