changing \n -> <br /> for html output