Chrome allows for some CSS formatting of output when using `console.log` https://developer.chrome.com/devtools/docs/console-api#consolelogobject-object It would be best if Firebug simply ignores it instead of trying to perform a replacement.  Check the following Plunker: http://plnkr.co/edit/CczHE3?p=preview