Răsfoiți Sursa

Merge pull request #1410 from visuddhinanda/agile

text.replaceAll("<br>", "<div></div>");
visuddhinanda 2 ani în urmă
părinte
comite
d644d71e3d
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      dashboard/src/components/template/utilities.ts

+ 1 - 0
dashboard/src/components/template/utilities.ts

@@ -23,6 +23,7 @@ export function XmlToReact(
   convertor?: TCodeConvertor
 ): React.ReactNode[] | undefined {
   //console.log("html string:", text);
+  text = text.replaceAll("<br>", "<div></div>");
   const parser = new DOMParser();
   const xmlDoc = parser.parseFromString(
     `<body>${text}</body>`,