Answer the question
In order to leave comments, you need to log in
How is the contents of the wysiwyg editor stored in the database?
Hello.
For the first time I come across wysiwyg editors. I opted for light bootstrap-wysiwyg Who worked, tell me how to save its contents in the database? I have options in my head, but can anyone share their experience?
Answer the question
In order to leave comments, you need to log in
Well, usually such an editor renders to some textarea and constantly synchronizes its content with it, so sending to the server happens as usual.
As written above: html, markdown, but run through a function to safely save special characters in the database so that you don’t run into some kind of injection
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question