@maschinenlesbar.org/lebensmittelwarnung-cli
    Preparing search index...

    Function parseDescription

    • Turn one item's HTML description into a { fields, imageUrls } structure.

      The description is a flat run of <img …/> tags and <b>Label:</b> value pairs joined by <br/>. We:

      • collect every <img src="…"> URL;
      • split the remaining markup on <b>…</b> boundaries so each bold label owns the text up to the next bold label, then strip the residual tags from that value and collapse its whitespace.

      Labels repeat across item types but not always (a "Bildquelle" caption has no colon and its own following text); we keep the LAST value for a repeated label rather than concatenating, which matches how the portal renders single-valued fields. The raw description stays available on the item for anyone who needs more.

      Parameters

      • html: string

      Returns ParsedDescription