Tidy is a project mainly written in C, based on the View license.
The W3C HTML Tidy library packaged as a native Ruby extension.