This commit is contained in:
Nathan Bierema 2021-08-29 10:18:06 -04:00
parent eac32ffc94
commit 3fdeb38694

View File

@ -7,9 +7,7 @@
import Anser from 'anser';
import { nicinabox as theme } from 'redux-devtools-themes';
import { AllHtmlEntities as Entities } from 'html-entities';
const entities = new Entities();
import { encode } from 'html-entities';
const anserMap = {
'ansi-bright-black': theme.base03,
@ -27,7 +25,7 @@ const anserMap = {
};
function generateAnsiHTML(txt: string): string {
const arr = new Anser().ansiToJson(entities.encode(txt), {
const arr = new Anser().ansiToJson(encode(txt), {
use_classes: true,
});