Skip to main content

Cleaning Dirty HTML with tidy

  • Chapter
Practical Ruby Gems
  • 696 Accesses

Abstract

HTML is a standard file format for pages that can be viewed in a Web browser. There are a great many ways to create HTML pages, ranging from graphical editors such as Dreamweaver to text editors such as Notepad, Emacs, or Vim. Unfortunately, graphical editors generally do not work well with most Web frameworks, including Rails, and HTML produced with text editors may not be standards-compliant; it may lack closing tags or use invalid tag combinations or attributes. Additionally, some graphical editors produce bad HTML; the problem is exacerbated by the fact that modern browsers are very tolerant of HTML that is not standardscompliant, so very incorrect HTML will often still display properly.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2007 David Berube

About this chapter

Cite this chapter

(2007). Cleaning Dirty HTML with tidy. In: Practical Ruby Gems. Apress. https://doi.org/10.1007/978-1-4302-0193-9_32

Download citation

Publish with us

Policies and ethics