CodeIgniter Forums
CSS Sanitizer? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: CSS Sanitizer? (/thread-15444.html)



CSS Sanitizer? - El Forum - 02-04-2009

[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_sanitize/blob/f889f4fa7b6e5a18474685c22dcad631561032d6/lib/css_sanitize.rb

Just wondering if anyone has anything they've used before and thought was good. Thanks.