develooper Front page | perl.libwww | Postings from May 2013

New feature in module HTML::HeadParser

Stefan Berger
May 14, 2013 18:00
New feature in module HTML::HeadParser
Message ID:
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
------------------------------------------------------------ Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About