Home >Web Front-end >HTML Tutorial >How tornado preserves the line breaks in the string in render to display in the html page_html/css_WEB-ITnose
For example:
message = "hi
Hello!"# (including line breaks)
self.render("logentry.html", content=message)
But loginry. The html does not display line breaks, and is processed as follows:
message = "hi
self.render("logentry.html", content=message)
Not only is it not implemented, but
is displayed as content
Please give me some advice, thank you
Reply to discussion (solution)