MicrodataPHP icon indicating copy to clipboard operation
MicrodataPHP copied to clipboard

Fixed issue where itemprop content is ignored

Open toneplex opened this issue 10 years ago • 0 comments

When parsing recipes, so authors create the prepTime/cookTime in different ways. I've updated the MicrodataPhpDOMElement->itemValue to grab the content attribute if it is present, instead of sending the incorrect element value.

eg. 1 hour, 10 minutes should return PT1H10M and not "1 hour, 10 minutes"

toneplex avatar Jun 16 '15 16:06 toneplex