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

    Function decodeEntities

    • Decode the five predefined XML entities, numeric (&#NN; / &#xNN;) refs and the HTML 4 named references (ä, –, €, … — the description is HTML).

      A reference to a UTF-16 surrogate (U+D800–U+DFFF) is not a character. Two in a row, a high one then a low one (��, as a writer that escapes UTF-16 units emits an emoji), are the character they encode; a lone one becomes U+FFFD and is counted in tally, so the text stays well-formed (jq rejects a lone surrogate, and with it the whole output) and the change is never silent. A reference past U+10FFFF and an unknown name are left as they are.

      Parameters

      Returns string