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