remove line breaks in json output as we use <br> tags