<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/bash/tags/html</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 18 May 2013 20:15:08 GMT</pubDate>
<item>
<title>(Bash) Copy a dynamic website using wget - alexaivars</title>
<link>http://snipplr.com/view/66723/copy-a-dynamic-website-using-wget/</link>
<description><![CDATA[ <p>Creating a static copy of a dynamic website</p> ]]></description>
<pubDate>Tue, 14 Aug 2012 16:57:32 GMT</pubDate>
<guid>http://snipplr.com/view/66723/copy-a-dynamic-website-using-wget/</guid>
</item>
<item>
<title>(Bash) Sending html from Mutt - yisreldov</title>
<link>http://snipplr.com/view/37938/sending-html-from-mutt/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 27 Jul 2010 17:43:19 GMT</pubDate>
<guid>http://snipplr.com/view/37938/sending-html-from-mutt/</guid>
</item>
<item>
<title>(Bash) Create img tag that includes width and height values - nijgnet</title>
<link>http://snipplr.com/view/30671/create-img-tag-that-includes-width-and-height-values/</link>
<description><![CDATA[ <p>Usage:
`imgsize [file(s)]`</p> ]]></description>
<pubDate>Thu, 01 Apr 2010 02:16:53 GMT</pubDate>
<guid>http://snipplr.com/view/30671/create-img-tag-that-includes-width-and-height-values/</guid>
</item>
<item>
<title>(Bash) Compare the state of web pages with a previous state - ascarion</title>
<link>http://snipplr.com/view/29792/compare-the-state-of-web-pages-with-a-previous-state/</link>
<description><![CDATA[ <p>This can be used to check if an update of a CMS (or blog, plugin, ...) changed something in the frontend (content or HTML).

Run the script with the file that contains the urls as parameter:

`wiff.sh urllist.txt`

urllist.txt contains the urls one per line.

The snapshots are stored in "~/wiff" by default.

You can use diff instead of wdiff: `wiff.sh -c diff urllist.txt`</p> ]]></description>
<pubDate>Mon, 15 Mar 2010 15:21:05 GMT</pubDate>
<guid>http://snipplr.com/view/29792/compare-the-state-of-web-pages-with-a-previous-state/</guid>
</item>
<item>
<title>(Bash) Howto run Tidy from the command line - noah</title>
<link>http://snipplr.com/view/27758/howto-run-tidy-from-the-command-line/</link>
<description><![CDATA[ <p>This shell command will retrieve a Web page and validate the HTML with [Tidy, the HTML linter from the W3](http://tidy.sourceforge.net/).  You can get an **XHTML validation** report right in your shell prompt, just like you'd get from the [Firefox extension](https://addons.mozilla.org/en-US/firefox/addon/249) or the [Web service.](validator.w3.org/).  It's especially helpful when you need to **validate HTML on your intranet, or behind a firewall.**

### **NOTE: Curl does not follow redirects by default!**

By default, Curl retrieves *exactly* the URL you specify. The `-L` option causes Curl to follow redirects just like a Web browser would.

### **NOTE: Tidy produces a lot of output!**


Windows users should make sure their [command prompt screen buffer height is set to 9999](http://www.codinghorror.com/blog/archives/000334.html 'command prompt tips from Coding Horror') so that you don't "lose" any output.


### **Explanation of the command line options**

`curl -L` tells Curl to fo**LL**ow HTTP redirects

`curl -s` **S**uppresses Curl's annoying progress bar

`tidy -e` tells Tidy not to **E**mit the tidied HTML to the console

`tidy -q` tells Tidy to be **Q**uiet, instead of printing extra crap at the bottom of the report

### **Dependencies**

Curl and Tidy are installed via the [Cygwin setup.exe](http://cygwin.com/)

Alternately, Perl hackers could use [lwp-request](http://search.cpan.org/~gaas/libwww-perl-5.808/bin/lwp-request).

### **Doing more**

[Validate HTML with a stricter algorithm,](http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/) using the OpenJade SGML parser.

[Validate linked pages](http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/) with Tidy and lwp-request.</p> ]]></description>
<pubDate>Fri, 05 Feb 2010 12:41:54 GMT</pubDate>
<guid>http://snipplr.com/view/27758/howto-run-tidy-from-the-command-line/</guid>
</item>
<item>
<title>(Bash) (HTML) Tutorial Page Download with 'wget' - abhiomkar</title>
<link>http://snipplr.com/view/15566/html-tutorial-page-download-with-wget/</link>
<description><![CDATA[ <p>Download all tutorial pages of html format recursively.

Ex: http://www.moraware.com/help/

Get the url of tree frame (left), use it in wget. 

Have fun :)</p> ]]></description>
<pubDate>Fri, 05 Jun 2009 15:14:26 GMT</pubDate>
<guid>http://snipplr.com/view/15566/html-tutorial-page-download-with-wget/</guid>
</item>
<item>
<title>(Bash) Insert css file into many html files - ascarion</title>
<link>http://snipplr.com/view/10207/insert-css-file-into-many-html-files/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 02 Dec 2008 14:20:29 GMT</pubDate>
<guid>http://snipplr.com/view/10207/insert-css-file-into-many-html-files/</guid>
</item>
<item>
<title>(Bash) Validate XHTML with Tidy and/or OpenJade, just like the FF extension - noah</title>
<link>http://snipplr.com/view/4970/validate-xhtml-with-tidy-andor-openjade-just-like-the-ff-extension/</link>
<description><![CDATA[ <p>Neither command will give any feedback unless invalid markup is found.</p> ]]></description>
<pubDate>Sun, 10 Feb 2008 02:14:45 GMT</pubDate>
<guid>http://snipplr.com/view/4970/validate-xhtml-with-tidy-andor-openjade-just-like-the-ff-extension/</guid>
</item>
<item>
<title>(Bash) Tail requests for HTML files - noah</title>
<link>http://snipplr.com/view/4069/tail-requests-for-html-files/</link>
<description><![CDATA[ <p>This command will tail an Apache access log, but only print lines where an HTML file was requested.</p> ]]></description>
<pubDate>Mon, 05 Nov 2007 12:40:54 GMT</pubDate>
<guid>http://snipplr.com/view/4069/tail-requests-for-html-files/</guid>
</item>
</channel>
</rss>