Downloads of v


Last Update:

01 Mar 2017

Package Maintainer(s):

Software Author(s):



foss cross-platform xml html tidy html5

HTML Tidy with HTML5 support

This is not the latest version of HTML Tidy with HTML5 support available. | Updated: 01 Mar 2017



Downloads of v



Software Author(s):


HTML Tidy with HTML5 support

This is not the latest version of HTML Tidy with HTML5 support available.

All Checks are Passing

2 Passing Test

Validation Testing Passed

Verification Testing Passed


To install HTML Tidy with HTML5 support, run the following command from the command line or from PowerShell:


To upgrade HTML Tidy with HTML5 support, run the following command from the command line or from PowerShell:


To uninstall HTML Tidy with HTML5 support, run the following command from the command line or from PowerShell:


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade html-tidy -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade html-tidy -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure html-tidy installed
    name: html-tidy
    state: present
    source: STEP 3 URL

See docs at

Coming early 2020! Central Managment Reporting available now! More information...

chocolatey_package 'html-tidy' do
  action    :install
  version  ''
  source   'STEP 3 URL'

See docs at

    Name: html-tidy,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller html-tidy
   Name     = 'html-tidy'
   Ensure   = 'Present'
   Version  = ''
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'html-tidy':
  provider => 'chocolatey',
  ensure   => '',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install html-tidy version="" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 01 Mar 2017.


Tidy is a console application for Mac OS X, Linux, Windows, UNIX, and more. It corrects and cleans up HTML and XML documents by fixing markup errors and upgrading legacy code to modern standards.

libtidy is a C static and dynamic library that developers can integrate into their applications in order to bring all of Tidy’s power to your favorite tools. libtidy is used today in desktop applications, web servers, and more.

The HTML Tidy library, libtidy, is used and incorporated into many applications and projects. It offers an extensive API to read in and parse html from a file or buffer into a DOM like node tree, has cleaning and diagnostic services, ability to iterate through this node tree, interogating attributes, child nodes, and a pretty print output.

# HTML Tidy

## HTML parser and pretty printer

Copyright (c) 1998-2016 World Wide Web Consortium
(Massachusetts Institute of Technology, European Research 
Consortium for Informatics and Mathematics, Keio University).
All Rights Reserved.

Additional contributions (c) 2001-2016 University of Toronto, Terry Teague, 
@geoffmcl, HTACG, and others.

### Contributing Author(s):

  Dave Raggett <[email protected]>

The contributing author(s) would like to thank all those who
helped with testing, bug fixes and suggestions for improvements. 
This wouldn't have been possible without your help.


This software and documentation is provided "as is," and
the copyright holders and contributing author(s) make no
representations or warranties, express or implied, including
but not limited to, warranties of merchantability or fitness
for any particular purpose or that the use of the software or
documentation will not infringe any third party patents,
copyrights, trademarks or other rights. 

The copyright holders and contributing author(s) will not be held
liable for any direct, indirect, special or consequential damages
arising out of any use of the software or documentation, even if
advised of the possibility of such damage.

Permission is hereby granted to use, copy, modify, and distribute
this source code, or portions hereof, documentation and executables,
for any purpose, without fee, subject to the following restrictions:

1. The origin of this source code must not be misrepresented.
2. Altered versions must be plainly marked as such and must
not be misrepresented as being the original source.
3. This Copyright notice may not be removed or altered from any
source or altered source distribution.

The copyright holders and contributing author(s) specifically
permit, without fee, and encourage the use of this source code
as a component for supporting the Hypertext Markup Language in
commercial products. If you use this source code in a product,
acknowledgement is not required but would be appreciated.

Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

Package can be verified like this:

1. Go to


   to download the installer.

2. You can use one of the following methods to obtain the SHA256 checksum:
   - Use powershell function 'Get-FileHash'
   - Use Chocolatey utility 'checksum.exe'

   checksum32: 94D653498B4F93B14F12A55CA06154E19C540C9B276E5D163F1CF84FA078F97A
   checksum64: DD9FD814CC44BC2FFA9B9E547B1A6CBB42B6BE7B9358542D3EE7F6E10B676423

Using AU:


File '' is obtained from:
$ErrorActionPreference = 'Stop'

$toolsDir      = Split-Path $MyInvocation.MyCommand.Definition
$embedded_path = if ((Get-ProcessorBits 64) -and $env:chocolateyForceX86 -ne 'true') {
         Write-Host "Installing 64 bit version"; gi "$toolsDir\*"
} else { Write-Host "Installing 32 bit version"; gi "$toolsDir\*" }

$packageArgs = @{
    PackageName  = 'html-tidy'
    FileFullPath = $embedded_path
    Destination  = $toolsDir
ls $toolsDir\* | ? { $_.PSISContainer } | rm -Recurse -Force #remove older package dirs
Get-ChocolateyUnzip @packageArgs
rm $toolsDir\*.zip -ea 0
md5: 855990F589D533E5B62E33C818ECB562 | sha1: 2DEB9BABD9BD6203E63622331FF0322E5E9B1533 | sha256: 94D653498B4F93B14F12A55CA06154E19C540C9B276E5D163F1CF84FA078F97A | sha512: 640F6F8E49A10918CE76782AC25750B1AD3DD7AFF91F82E7C21166C0F1F1E41EB8637CE1AF455EF9D38B20F80304FECFE9B6B3CA353B021C66A89CA4D0B897C5
md5: 678A24AF36906C9E0D46A8D2543AA75C | sha1: 7199905B74C47260FE91EFA5EDD96060CF702A32 | sha256: DD9FD814CC44BC2FFA9B9E547B1A6CBB42B6BE7B9358542D3EE7F6E10B676423 | sha512: 009A0BD1DE87041A001AA4A0B56F603C0D759E3B892031D459CC07253E0E70E881DF1E8735FC13250BE3455227E3F1CD558ABD59C2A6B4F532687F51063972B5

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
HTML Tidy with HTML5 support 5.4.0 660 Wednesday, March 1, 2017 Approved
HTML Tidy with HTML5 support 293 Wednesday, March 1, 2017 Approved
HTML Tidy with HTML5 support 266 Tuesday, February 28, 2017 Approved
HTML Tidy with HTML5 support 473 Sunday, August 7, 2016 Approved
HTML Tidy with HTML5 support 5.2.0 331 Wednesday, April 13, 2016 Approved
HTML Tidy with HTML5 support 5.1.25 302 Saturday, March 12, 2016 Approved

This package has no dependencies.

Discussion for the HTML Tidy with HTML5 support Package

Ground Rules:

  • This discussion is only about HTML Tidy with HTML5 support and the HTML Tidy with HTML5 support package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or HTML Tidy with HTML5 support, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus