Open
Description
Consider this HTML construct:
<meta property="og:title" content="‘A Path That Is Not Sustainable’: College Hits Breaking Point, Sends Home Majority of Student Body" />
This is turned into the following by the opengraph module:
[
"og:title",
"‘A Path That Is Not Sustainable’: College Hits Breaking Point, Sends Home Majority of Student Body"
],
Does anyone know why this couldn't instead be:
"og:title":"‘A Path That Is Not Sustainable’: College Hits Breaking Point, Sends Home Majority of Student Body",
A case for having the output be this way:
- You can then do semantic selectors instead of positional selectors (
["og:title"]
vs[1]
) - If there are multiple occurrences with an
og:tag
then I think this is a bug, certainly for the purposes ofextruct
. Or maybe I'm wrong on this.
Thoughts most welcome.