# \[ANN\] RailsTidy: validates your HTML

**URL:** <https://www.ruby-forum.com/t/ann-railstidy-validates-your-html/68573>\
**Category:** Rails\
**Created:** [February 15, 2006, 1:57pm UTC](https://www.ruby-forum.com/t/ann-railstidy-validates-your-html/68573 "2006-02-15T13:57:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 15, 2006, 1:57pm UTC](https://www.ruby-forum.com/t/ann-railstidy-validates-your-html/68573/1 "2006-02-15T13:57:45Z")

</div>

Hello everybody,

I needed something to validates my HTML templates so I wrote a plugin  
and here is its first version:

RailsTidy is a plugin for Ruby On Rails. It allows you to

```
* validate your rhtml templates,
* validate the html output of your functional tests,
* clean the html generated by rails.

```

For doing all this, it uses

```
* Tidy[1], the popular HTML validator and
* RubyTidy[2], Ruby bindings for Tidy.

```

More on the RailsTidy[3] page.

```
* Installation instruction, usage and so on
  are at http://www.cosinux.org/~dam/projects/rails-tidy/doc/,
* Source tree is at 

```

[http://www.cosinux.org/~dam/projects/rails-tidy/rails\_tidy](http://www.cosinux.org/~dam/projects/rails-tidy/rails_tidy),  
\* Tarball is at  
[http://www.cosinux.org/~dam/projects/rails-tidy/rails\_tidy-0.1.tar.bz2](http://www.cosinux.org/~dam/projects/rails-tidy/rails_tidy-0.1.tar.bz2)

[1] [http://tidy.sourceforge.net/](http://tidy.sourceforge.net/)  
[2] [http://rubyforge.org/projects/tidy/](http://rubyforge.org/projects/tidy/)  
[3] [http://www.cosinux.org/blogs/dam/pages/rails-tidy](http://www.cosinux.org/blogs/dam/pages/rails-tidy)

I’ve seen in recents posts that people where looking for something  
to clean their HTML output. The plugin can do it, but this hits  
performance  
quite a bit.

Hope this helps some peoples,

Regards,

Damien

PS: If someone has the correct mail for the ruby tidy bindings author,  
can he  
send it to me ? The rubyforge adress seems to not be valid anymore.

–  
Damien MERENNE [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://www.cosinux.org/blogs/dam/](http://www.cosinux.org/blogs/dam/)

Scientists have estimated that the energy given off during the Big Bang  
is roughly equal to 1CNRhK (Chuck Norris Roundhouse Kick)

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 15, 2006, 1:57pm UTC](https://www.ruby-forum.com/t/ann-railstidy-validates-your-html/68573/2 "2006-02-15T13:57:45Z")

</div>

Oh, and I hope this time my server is correctly configured. There should  
not be problems, but if you experiences some, please be patient.

Bye

–  
Damien MERENNE [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://www.cosinux.org/blogs/dam/](http://www.cosinux.org/blogs/dam/)

Chuck Norris doesn’t churn butter.  
He roundhouse kicks the cows and the butter comes straight out.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 16, 2006, 5:59am UTC](https://www.ruby-forum.com/t/ann-railstidy-validates-your-html/68573/3 "2006-02-16T05:59:52Z")

</div>

Oooh, Nice!

validating html has always been a pain because its so easy to forget to  
validate the pages after you edit them, this is going to come in handy.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 16, 2006, 7:21am UTC](https://www.ruby-forum.com/t/ann-railstidy-validates-your-html/68573/4 "2006-02-16T07:21:45Z")

</div>

On 2/15/06, Damien MERENNE [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> He roundhouse kicks the cows and the butter comes straight out.
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

Wow, really good idea!
