The build-in sanitize is not very efficient and is only able to filter out
unwanted tags. 

Sanitze goes a lot further. Most important feature is that it outputs valid
html. For example, it you put a </div> in your note, it could mess up the
page completely. Or a <STRONG> that is not ended in the note with </STRONG>
will mess up things too.

 

The dependency on ruby 1.8.6 is unfortunate though. I did not spot it.

 

But when we migrate to rails3 (tracks 2.1?), we need ruby 1.9 I believe? 

 

Reinier

 

Van: [email protected]
[mailto:[email protected]] Namens Eric Allen
Verzonden: woensdag 14 april 2010 15:09
Aan: [email protected]
Onderwerp: [Tracks-discuss] Re: Ruby 1.8.6 on RedHat 5

 

Hmm. This sanitize thing seems like it's causing a lot of extra work for
people. Reinier, why do we need the gem instead of Rails's built-in
sanitize?

On Wed, Apr 14, 2010 at 8:05 AM, Tim Madden <[email protected]> wrote:

For Ubuntu, I already had 1.8.6, but I did have to install some extra
packages for libxslt to get it to run. After I added the libxslt1-dev,
libxslt-ruby and libxslt-ruby-1.8.  I am not sure that I needed them all,
but figured there was little risk to adding them.

 

On Wed, Apr 14, 2010 at 4:59 AM, Orlando Richards
<[email protected]> wrote:

I just discovered that I needed to install the "sanitize" gem to keep up
with the blazing development trail - but it requires ruby >= 1.8.6.

Since RedHat ship 1.8.5 with RHEL 5, a quick bit of googling was required.
This page describes nicely how to quickly and easily add in an additional
yum repo with ruby 1.8.6:

http://wiki.opscode.com/display/chef/Preparing+Red+Hat+and+CentOS+5+for+Ruby
Gems

I thought that might be of use to someone other than me!

--
Orlando.

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

 


_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

 

_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

Reply via email to