02-04-2009, 05:40 PM
[eluser]dmorin[/eluser]
Anyone know of a library that will sanitize CSS to remove javascript and other things that could be a security risk? It looks like HTMLPurifier does at least some and this ruby code would be fairly trivial to port:
http://github.com/courtenay/css_file_san...anitize.rb
Just wondering if anyone has anything they've used before and thought was good. Thanks.
Anyone know of a library that will sanitize CSS to remove javascript and other things that could be a security risk? It looks like HTMLPurifier does at least some and this ruby code would be fairly trivial to port:
http://github.com/courtenay/css_file_san...anitize.rb
Just wondering if anyone has anything they've used before and thought was good. Thanks.