replace <br> to ‘\n’ for API