![]() |
TinyMCE - cleaning up user input
How should I be cleaning up the data from a tinyMCE box? I want them to be able to use html but not execute anything bad.
|
Well then you'd have to disable all <scripts> tags, and you could use Regex to do so. I'm horrible with Regex so it probably won't be close to this
PHP Code:
|
Also, it has been a while since I have used TinyMCE, but they have some built in cleaning tools that are used as well. Check out the manual.
Personally whenever I used tinyMCE, I sent the data straight to a text file, rather then a database. |
| All times are GMT. The time now is 12:18 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0