onetsp / RecipeParser

A PHP library for parsing structured recipe data from HTML files.
https://onetsp.com/
MIT License
93 stars 26 forks source link

CORE-1132: add mobile site check to MyRecipes tester and fix title scaping logic for mobile #22

Closed OldGareBear closed 8 years ago

OldGareBear commented 8 years ago

Change Summary

MyRecipes is not properly marking up their titles. The existing parser just uses the content of the first item tagged as a "name", leading it to save the first ingredient as the title.

Now, we do a test to see whether the first ingredient is the same as the title and if so, fall back to scraping the meta title.

Release Notes

None.

Testing

Tested by switching one of the MyRecipes unit tests to the mobile version. Parsed correctly.