escape library provides several HTML/URI/shell escaping functions for Ruby.

Homepage:
http://www.a-k-r.org/escape/
