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.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
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.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080