Make output html escaping, atom links and coloring to work properly together