Encode or decode HTML entities. Handles all standard named entities and numeric references.
Common Entity Reference
${[['&','&'],['<','<'],['>','>'],['"','"'],["'",'''],['©','©'],['®','®'],['™','™'],['€','€'],['£','£'],['¥','¥'],['→','→'],['←','←'],['↑','↑'],['↓','↓'],['•','•'],['…','…'],['—','—'],['–','–'],['×','×'],['÷','÷'],['±','±'],['≠','≠'],['≤','≤'],['≥','≥'],['∞','∞']]
.map(([char,entity])=>`${char} = ${entity}`).join('')}