Answer the question
In order to leave comments, you need to log in
How to save JS code through WYSIWYG editor?
Hello!
Help with advice or deed) How can I save JavaScript code through a WYSIWYG editor?
Those. we have the nicEdit editor. In theory, you need to enter it there - this script is saved not as just text, but as a script. And when editing, you need it to be displayed as text)
The $_POST['content'] array is transmitted to the server and saved using PHP in MYSQL
I hope I explained it clearly) <script>alert(123);</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question