Hello,
The forum module does this automatically and it's part of the forum module code.
Yes you could use the FCKEditor to create a basic toolbar such as Bold, unordered list etc. but it will not necessarily strip out JavaScript code, unless there is a setting within the FCK editor that I am not aware of.
It may also be worth your time to look at the Telerik WYSIWYG editor, you have to pay for it, but it looks as though it could cover your needs:
http://www.telerik.com/products/asp...rview.aspxhttp://www.telerik.com/products/dnn...rview.aspx
Content Filters
Content Filters are small code snippets, which are called in a sequence
to process the editor content, when the mode (html / design / preview)
is changed. Basically, the editor content is supplied to the filter
chain and each filter gets a chance to modify it. Developers can easily
create their own filters and process the HTML content when needed.
It could be worth contacting support at their site and see if the editor can cover your needs, if you can get it to filter out content that you require, you will not have to rely on the programming of modules to filter out dangerous code.
- note I have not used this editor before, thanks,