Answer the question
In order to leave comments, you need to log in
How to store messages?
The essence of the matter is this. There is a certain site on which there will be a forum written on Angular+Express. The question is how to correctly save messages so that they are saved with the markup entered by the user. That is, with all the tabs, paragraphs and other things? I heard that storing HTML markup in the database is not the best option, what to do? Can I create my own html file for each message, and only the path to the file in the database?
Answer the question
In order to leave comments, you need to log in
Use MarkDown markup.
There are a lot of parsers, converters and whatever else you want for js.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question