Amazon Vinyl
    Preparing search index...

    Function decodeEntities

    • Replaces all specified entities with their mapped representations. Decimal (!) and hexadecimal (!) character references are both decoded. An unrecognized named entity, or a character reference that is not a valid code point, is left as-is.

      For example (using predefinedDecodeEntities):

      `&lt;Hello to y&apos;all&#33;&gt;` becomes `<Hello to y'all!>`
      

      Parameters

      • str: string
      • namedEntities: ReadonlyMap<string, string> = predefinedDecodeEntities

      Returns string