Closed ilyasjamil closed 2 years ago
Hey @ilyasjamil, have you tried replacing \n
with <br />
? text.replace(/\\n/g, "<br />");
Alternatively, you may format your text into paragraphs with <p>
-tags or whichever way you like with HTML and CSS.
Hey @ilyasjamil, have you tried replacing
\n
with<br />
?text.replace(/\\n/g, "<br />");
thank you!
So my Rasa chatbot code returns a paragraph with "\n" at the end of each line to make a new line. But when I use your Chat-bubble interface with the Rasa demo it gets ignored and every line is stacked together with the other one. What should I make the chatbot say to make a newline if \n does not work?