Forum: Ruby on Rails Allowing certain HTML tags

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.
181976602397443ce119909b9d82cae2?d=identicon&s=25 blinking bear (Guest)
on 2007-03-21 14:43
(Received via mailing list)
I'm looking for the right combination of view helpers to get the

-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.

C4dc94c893471878a105761a9207f29b?d=identicon&s=25 Zack Chandler (Guest)
on 2007-03-21 15: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

Hope this helps.

Zack Chandler
This topic is locked and can not be replied to.