export const convertNewlinesToBr = (value: string): string => {
  if (!value) return "";
  return value.replace(/\r\n|\r|\n/g, "<br>");
};

export const convertBrToNewlines = (value: string): string => {
  if (!value) return "";
  return value.replace(/<br\s*\/?>/gi, "\n");
};
