Investigate the possibility of using ansi2html instead of the custom solution
Some time ago I developed the ANSI2HTML
and XTerm2HTML
classes, but now I discovered https://github.com/ralphbean/ansi2html
Some time ago I developed the ANSI2HTML
and XTerm2HTML
classes, but now I discovered https://github.com/ralphbean/ansi2html