The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>
WebMake: Documentation: The HTML Cleaner
</title>
<meta name="generator" content="WebMake/1.2" />
<style>
body {
background-color: #ffffff;
color: #000000;
font-size: medium;
font-family: verdana,lucida,helvetica,sans-serif;
}
// OL,UL,P,BODY,TD,TR,TH,FORM {
// font-family: verdana,lucida,helvetica,sans-serif;
// font-size: medium;
// color: #000000;
}
code, samp, pre
{
font-family: monospace;
}
H1 { font-size: x-large; font-family: Garamond,Book Antiqua,Times,serif; background: #FFCC66; }
H2 { font-size: large; font-family: Garamond,Book Antiqua,Times,serif; background: #FFDD77; }
H3 { font-size: medium; font-family: Garamond,Book Antiqua,Times,serif; background: #FFEE88; }
H4 { font-size: small; font-family: Garamond,Book Antiqua,Times,serif; }
H5 { font-size: x-small; font-family: Garamond,Book Antiqua,Times,serif; }
H6 { font-size: xx-small; font-family: Garamond,Book Antiqua,Times,serif; }
A:link {
font-weight: bold;
color: #004000;
text-decoration: underline;
}
A:visited {
font-weight: normal;
color: #008000;
text-decoration: underline;
}
A:active {
font-weight: bold;
color: #800000;
text-decoration: underline;
}
</style>
</head>
<body bgcolor="#ffffff" text="#000000" link="#3300cc" vlink="#660066">
<font face="lucida,verdana,sans-serif">
<div align="center">
<img src="images/WebMakeTitle.png" width="500" height="122" />
</div>
<table width="100%">
<tr>
<td valign="top">
<strong><a href="http://webmake.taint.org/">WebMake</a>
Documentation</strong> (version 1.2)
</td>
<td valign="top">
<div align="right">
[ <a href="pod.html">Back</a> | <a href="index_08-pod.html">Forward</a> | <a href="index.html">Index</a>
| <a href="allinone.html">All&nbsp;In&nbsp;One</a> ]
</div>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td bgcolor="#aaaaaa">
<table border="0" cellspacing="4" cellpadding="4" width="100%">
<tr>
<td bgcolor="#ffffff">
<table border="0" cellspacing="4" cellpadding="4" width="100%">
<tr>
<td>
<h1>The HTML Cleaner</h1><p>
The HTML cleaner is a powerful filter which can polish grotty, messy HTML into
fully-standards-compliant glory. By default, all output of format
<strong>text/html</strong> (the default format) will be passed through it.
</p>
<p>
It is controlled using the <em>clean</em> parameter of the &lt;out&gt; tag.
The features to be used should be listed in this parameter's value, separated
by whitespace.
</p>
<p>
Here are the features available:
</p>
<ul>
<li>
<p>
<em>pack</em> - Compress the HTML, removing all white space that is not
part of an attribute's value, or inside &lt;xmp&gt; or &lt;pre&gt; tags.
</p>
</li>
<li>
<p>
<em>nocomments</em> - Trim all comments.
</p>
</li>
<li>
<p>
<em>addimgsizes</em> - Add image sizes to &lt;img&gt; tags if they do not
already specify them.
</p>
</li>
<li>
<p>
<em>cleanattrs</em> - Quote all attributes in opening tags, and lowercase
all tag names.
</p>
</li>
<li>
<p>
<em>addxmlslashes</em> - Add XML-style slashes to the end of empty-element
tags, such as &lt;hr&gt;, &lt;img&gt; etc.
</p>
</li>
<li>
<p>
<em>fixcolors</em> - Fix colors that do not start with a # character, so that
they do.
</p>
</li>
</ul>
<p>
The feature string <em>all</em> can be used to include all cleaning modes.
This is the default.
</p>
<p>
</p>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%">
<tr>
<td valign="top">
<strong><a href="http://webmake.taint.org/">WebMake</a>
Documentation</strong> (version 1.2)
</td>
<td valign="top">
<div align="right">
[ <a href="pod.html">Back</a> | <a href="index_08-pod.html">Forward</a> | <a href="index.html">Index</a>
| <a href="allinone.html">All&nbsp;In&nbsp;One</a> ]
</div>
</td>
</tr>
</table>
<div align="right">
<a href="http://webmake.taint.org/"> <img src="images/BuiltWithWebMake.png" border="0" width="88" height="31" /></a>
</div>
</font>
</body>
</html>