const strToDecode = 'Environment & Forest'; const parser = new DOMParser(); const decodedString = parser.parseFromString(`<!doctype html><body>${strToDecode}`, 'text/html').body.textContent; console.log(decodedString);