Forum: Ruby on Rails Using fckeditor under rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F5b620eb063a7c2044a897bf56352eae?d=identicon&s=25 Lucas Carvalho (Guest)
on 2007-05-28 22:06
(Received via mailing list)
Hello all,
  I am using fckeditor to write texts, but the problem is: the user can
JavaScripts commands.
  But when I am showing the content of record, I need to display only
HTML and deny the JavaScript commands.
  So I can not use the h tag. Because the h tag deny both (HTML and JS).
  How can I deny only the JS commands and display the HTML.

Thank you.

Lucas Carvalho
39b797fbc3c082a2c745df0739230897?d=identicon&s=25 Chad (Guest)
on 2007-05-29 03:01
I believe sanatize() will do the trick
39b797fbc3c082a2c745df0739230897?d=identicon&s=25 Chad (Guest)
on 2007-05-29 03:02
Only if you spell it right thought: sanitize()

Chad wrote:
> I believe sanatize() will do the trick
This topic is locked and can not be replied to.