![]() |
TinyMCE security
Is TinyMCE secure enough to allow users use it?
I mean, I want to allow my users use some buttons as bold, italics, etc just some basic options. What I don't know if it will prevent any xss, java script injection, etc Is it safe enough? Thanks |
I never used it so I can't tell.
But you can pass the user input through HTML Purifier - Filter your HTML the standards-compliant way! to make sure it stays clean. |
As a general rule you never really let the user use a WYSIWYG editor you give them a BBCode editor or something along those lines. Though if you use it tangent with a class to clean the html (as DeMo posted about HTML purifier) then I suppose it can still be used.
|
It's really slow for me. :P
|
I've been considering making my own BBCode WYSIWYG editor like thing because of the HTML purifying and slowness problems with most editors. I want to make one kind of like the one WP uses.
|
|
Oops, I meant to say that I want to make a editor like vbulliten uses, not WP.
|
I have just realized that tinyMCE can't be secure at all, because it's a javascript executed on the client pc, so practically a user can insert any html or javascript, there....
I found this: http://markitup.jaysalvat.com Looks like a great thing, it's a plugin to jQuery :) that create a nice interface for BBcode, Textile or even HTML, so it seems like an amazing plugin... Thanks to all |
@freenity
Unless iīm wrong (please correct me) then we need to ask ourselfs these questions: 1. What is JQuery ? answer: itīs Javascript. 2. Where does JavaScript get executed ? answer: in webbrowser clients. So your back to your initial concerns then i guess? If itīs the JavaScript that scares you ? Thereīs allways two sides of a coin. |
Quote:
|
Quote:
|
Quote:
|
| All times are GMT. The time now is 06:30 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0