Downloads of v 5.6.0:


Last Update:

21 Jan 2018

Package Maintainer(s):

Software Author(s):



foss cross-platform xml html tidy html5

HTML Tidy with HTML5 support

  • 1
  • 2
  • 3

5.6.0 | Updated: 21 Jan 2018



Downloads of v 5.6.0:



Software Author(s):


  • 1
  • 2
  • 3
HTML Tidy with HTML5 support 5.6.0

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed

Validation Testing Passed

Verification Testing Passed


Scan Testing Resulted in Flagged:

This package was submitted (and approved) prior to automated virus scanning integration into the package moderation processs.

We recommend clicking the "Details" link to make your own decision on installing this package.


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
    version: 5.6.0
    source: STEP 3 URL

See docs at

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

See docs at

    Name: html-tidy,
    Version: 5.6.0,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

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

Requires cChoco DSC Resource. See docs at

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

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install html-tidy version="5.6.0" 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 11 Jul 2020.


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: 03C8AE9359290A3523D9FD5131456E670D2BC2564FB20AED7C6456F86B8433E2
   checksum64: 59AC22427A3D759C72108814F6A8F0E98511B12F87744CA19E0A500A00687BE8

Using AU:


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

$toolsPath = Split-Path $MyInvocation.MyCommand.Definition

$packageArgs = @{
    PackageName    = 'html-tidy'
    FileFullPath   = gi $toolsPath\*
    FileFullPath64 = gi $toolsPath\*
    Destination    = $toolsPath
ls $toolsPath\* | ? { $_.PSISContainer } | rm -Recurse -Force #remove older package dirs
Get-ChocolateyUnzip @packageArgs
rm $toolsPath\*.zip -ea 0
md5: 959CA6141001D5C1A3C809664F558F5C | sha1: 7A82AD3BCE4CEFA18CCAE5D2D93DDD32D221581B | sha256: 03C8AE9359290A3523D9FD5131456E670D2BC2564FB20AED7C6456F86B8433E2 | sha512: 0D2E35678A692C9C22863B227E2B5C337CBD08C81103F58611DAF2471886CECF0F74A1B2F03DA8F3AF3A12833232D55BE66C95088D28EDDF9325FF0676B3D017
md5: 2F1E7DC31FDE25F27E2BC657A78527BC | sha1: 0233523CEE6B4DC3A699F853BE707ABF4D622646 | sha256: 59AC22427A3D759C72108814F6A8F0E98511B12F87744CA19E0A500A00687BE8 | sha512: 683C966B6E74B5F51BE253AA691E6CE86B81FC2EDAF5B6088191EE80D8DBEE920C8F0E139959F3B5F56115FCF3C1166E987CD8724534C101E1824EBB35A4F3C7

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 693 Wednesday, March 1, 2017 Approved
HTML Tidy with HTML5 support 321 Wednesday, March 1, 2017 Approved
HTML Tidy with HTML5 support 291 Tuesday, February 28, 2017 Approved
HTML Tidy with HTML5 support 501 Sunday, August 7, 2016 Approved
HTML Tidy with HTML5 support 5.2.0 372 Wednesday, April 13, 2016 Approved
HTML Tidy with HTML5 support 5.1.25 333 Saturday, March 12, 2016 Approved

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