Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

New feature in module HTML::HeadParser

0 views
Skip to first unread message

Stefan Berger

unread,
May 14, 2013, 3:15:17 AM5/14/13
to lib...@perl.org
Hi,
it would be nice if the module can parse meta-tags with the attribute 'property' like:

<meta property="og:type" content="university">

that come from open graph, Facebook in the module HTML::HeadParser
I know this is not standard, but they exist in many html documents….


A possible solution could be in 'sub start':

if ($attr->{name}) { $key = "X-Meta-\u$attr->{name}"; }
elsif ($attr->{property}) { $key = "X-Meta-\u$attr->{property}"; }
elsif ($attr->{charset}) {



Thanks for your work,
kind reagards Stefan

--
------------------------------------------------------------
Stefan Berger + Monica Moran
Wiesenweg 11
4144 Arlesheim
------------------------------------------------------------






0 new messages