• Replaces all specified entities with their mapped representations. 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