diff --git a/src/core/util/StringHelper.js b/src/core/util/StringHelper.js new file mode 100644 index 0000000..4e201c0 --- /dev/null +++ b/src/core/util/StringHelper.js @@ -0,0 +1,11 @@ +export const renderHTMLStringWithNewLine = (str) => { + return str.split("\n").map((line) => { + return ( + + {line} +
+
+ ); + }); +}; +