0

Hi,

I am using CKEditor (FCK) and I want to filter certain things from being used by users like (.com, <, >) symbols and words. Is there any plugin available for this or in which way i can do this? any help please..

thanks
rave

3
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by diafol
0

have you tried using an array in a str_replace command?

$string = 'test.com/%20\\\';
$array = array ('.com', '%', '\', '/');
$string = str_replace($array, '', $string;

This should just return the word test. I havent tried it but pretty sure you could use that.

0

Do you need this as interactive functionality (before post) or server-side after posting? The former will rely on JS, the latter on PHP. However JS can be circumvented, so a JS functionality would also require PHP backup.

0

you could control it all either way. I only know for certain how to do it in PHP.

just before you commit you should use some if statements to perhaps output the new string and then get the user to say they are happy with it

0

CKEditor uses JS, so if you're looking to embed this functionality into the interface, I assume it will be JS. BUT, as mentioned, if you want to ensure CLEAN input to the DB, you need to use some string or preg* functions.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.