Replaces HTML line breaks with newlines in a string