HTML Tidy is an excellent little widget for checking that HTML conforms to the W3C HTML spec and fixing errors as well a clening up indentation etc. It has nothing to do with Perl per se. As to examples there are many. For example Netscape/Mozilla is very particular about closing table tags. If you forget a </table> or have extra ones then really odd stuff will happen or the page will simply fail to display. To generate your own examples take some HTML, run it through tidy and RTFO where O = Output and the rest has the usual meaning.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
| [reply] [d/l] |
As I said, I want to clean the code, make it smaller (this is for the browser, not humans). The idea is to cut everything that not represent any visual thing in the browser and rewrite some parts/tags with less bytes, like cut quotes when is possible, spaces, etc...
Example? Test the code of the main node with the www.cnn.com.br url and see the result of cleaned code with the original.
Graciliano M. P.
"The creativity is the expression of the liberty". | [reply] |