Fixed issue with ANSI and non-html entities. ANSI colours work properly now even when non-html entities are seen such as < > & etc