Sunday, 17 February 2019

How can I get and show the content body for my blog?

Hello all!​I have just signed in to Reddit for this community, so please bear with me!​I have done a draft blog in Node.js. Right now, when I create a blog, I have a form with a textarea where I can write the content of the post. Such content is stored in my Mongo database as a string. When I show the blog there are no white lines, separating paragraphs and so on. What is the good way of doing this? I have the feeling that storing the all post as a string is the root of the problem.​Thank you in advance.

Submitted February 17, 2019 at 12:14PM by dejavits

No comments:

Post a Comment