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

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

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

Hope this helps.

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