by

How to convert html entities using TypeScript

const domParserHtmlEntities = new DOMParser();

const name = domParserHtmlEntities.parseFromString('you-text-here', 'text/html').body.textContent;

console.log(name);

Escreva um comentário

Comment