Allergen Label - if allergen is the last word in the ingredient list it is not bold.
If the allergen is the last word in the ingredient list, it does not get marked up with <b></b> tags.

this is what the HTML looks like after running the script:
Walnut is in the allergen list but not bolded when it is the last word on the ingredient list.

-
I am not getting the same issue, although I did have to add Walnut to the Allergens list as Walnuts was in there but not the singular:

I do remember coming across something like this a while ago, where an Allergen was not being picked up a while ago but this was mid ingredients dec and not at the end but this was due to what was being sent from the database as there was a character in the database list straight after it. You could try adding Walnut with a space afterwards to the Allergen list and see what that does or check the source of the ingredients list and make sure there are no none printable characters included in it.
0 -
Hi Peter,
Thanks for looking into this, however no joy even with change to the allergen list. It might be the code not testing for the end of the ingredients list as clearly the last word is not encased as expected - no <b></b> tags. Do I have the same version of the markup code?
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare