Craig White wrote:> I discovered Sanitize gem and it''s pretty good but one thing I can
see
> is that if someone puts a URL in the body of text without markup, that
> would become a link that would drive the person who clicks the link
> off-site which I don''t really want.
>
> So if I have say...
>
> @test = "This is a really cool website - http://www.example.com"
>
> I would want it to be changed to...
>
> @test = "This is a really cool website - <a
> href=''http://www.example.com''
target=''_new''
> rel=''nofollow''>http://www.example.com</a>"
Probably not a great idea. Don''t force links to open in a new window
--
it''s extremely annoying.
That said, you can do at least some of this with the <base> element.
>
> Is there some gem or plugin? Do I have to write some complicated gsub
> routine?
>
> Craig
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
When will you stop appending this silly footer to your e-mail?
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.