Forum: Ruby on Rails Allowing certain HTML tags

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
blinking bear (Guest)
on 2007-03-21 15:43
(Received via mailing list)
I'm looking for the right combination of view helpers to get the
following:

-carriage returns converted to <br />
-any URL's converted to links
-allow for embed tags
-sanitize any other tags or scripts

I know its kind of demanding :)  Any help is appreciated.

Thanks
Zack C. (Guest)
on 2007-03-21 16:48
(Received via mailing list)
> -carriage returns converted to <br />
Simple gsub()

> -any URL's converted to links
gsub() with regular expression

> -allow for embed tags
> -sanitize any other tags or scripts
white_list plugin
(http://svn.techno-weenie.net/projects/plugins/white_list/)

Hope this helps.

--
Zack C.
http://depixelate.com
This topic is locked and can not be replied to.