E
E
elailasou2015-01-15 21:24:12
PHP
elailasou, 2015-01-15 21:24:12

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

5 answer(s)
V
Valentine, 2015-01-15
@vvpoloskin

In some structured format - markdown, html.

S
shqn, 2015-01-15
@shqn

Well, usually such an editor renders to some textarea and constantly synchronizes its content with it, so sending to the server happens as usual.

X
xmoonlight, 2015-01-15
@xmoonlight

just saves the POST variable as usual and that's it.

L
LIAL, 2015-01-15
@LIAL

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

P
Pavel Tereshchenko, 2015-01-16
@l2ping

You can use HTML PUREFIER to clear the data .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question