<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.nginx.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.nginx.org/index.php?title=HttpStripModule&amp;feed=atom&amp;action=history</id>
		<title>HttpStripModule - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.nginx.org/index.php?title=HttpStripModule&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=HttpStripModule&amp;action=history"/>
		<updated>2013-05-22T16:30:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.0</generator>

	<entry>
		<id>http://wiki.nginx.org/index.php?title=HttpStripModule&amp;diff=3455&amp;oldid=prev</id>
		<title>Emiller: /* Newlines are not replaced by spaces */</title>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=HttpStripModule&amp;diff=3455&amp;oldid=prev"/>
				<updated>2013-03-08T23:11:08Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Newlines are not replaced by spaces&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:11, 8 March 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 71:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 71:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;b&amp;gt;Hello&amp;lt;/b&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;b&amp;gt; Hello &amp;lt;/b&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Emiller</name></author>	</entry>

	<entry>
		<id>http://wiki.nginx.org/index.php?title=HttpStripModule&amp;diff=226&amp;oldid=prev</id>
		<title>Perusio: /* strip */</title>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=HttpStripModule&amp;diff=226&amp;oldid=prev"/>
				<updated>2011-12-13T06:43:04Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;strip&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= mod_strip =&lt;br /&gt;
&lt;br /&gt;
''Note: this module is not distributed with the Nginx source. Installation instructions are [[#Installation|below]].''&lt;br /&gt;
&lt;br /&gt;
mod_strip removes unnecessary whitespace (spaces, tabs, and newlines) from HTML documents. It can be used in combination with NginxHttpGzipModule to reduce page download times for both static and dynamic content. This software is alpha/beta quality but it works for me. mod_strip leaves intact comments as well as &amp;amp;lt;pre&amp;amp;gt; tags.&lt;br /&gt;
&lt;br /&gt;
mod_strip is extremely fast. It parses HTML with a state machine and allocates no new memory buffers.&lt;br /&gt;
&lt;br /&gt;
Example usage:&lt;br /&gt;
&amp;lt;geshi lang=&amp;quot;nginx&amp;quot;&amp;gt;&lt;br /&gt;
location / {&lt;br /&gt;
    strip on;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Directives ==&lt;br /&gt;
&lt;br /&gt;
=== strip ===&lt;br /&gt;
&lt;br /&gt;
'''syntax:''' ''strip on|off''&lt;br /&gt;
&lt;br /&gt;
'''default:''' ''off''&lt;br /&gt;
&lt;br /&gt;
'''context:''' ''main, http, server, location''&lt;br /&gt;
&lt;br /&gt;
Enables stripping of responses with MIME type of ''text/html''.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
To install, download the source tarball ( [[Image:mod_strip-0.1.tar.gz]] ), expand it, and then compile nginx with the following option:&lt;br /&gt;
&lt;br /&gt;
 --add-module=/path/to/mod_strip-0.1&lt;br /&gt;
&lt;br /&gt;
== TODO ==&lt;br /&gt;
&lt;br /&gt;
* Generate state machine with [http://www.cs.queensu.ca/~thurston/ragel/ Ragel] &lt;br /&gt;
* Write parsers for JavaScript/CSS&lt;br /&gt;
* Ability to customize list of parsed MIME types&lt;br /&gt;
&lt;br /&gt;
== Bugs ==&lt;br /&gt;
&lt;br /&gt;
=== Newlines are not replaced by spaces ===&lt;br /&gt;
&lt;br /&gt;
This:&lt;br /&gt;
&lt;br /&gt;
 Line number 1&lt;br /&gt;
 Line number 2&lt;br /&gt;
&lt;br /&gt;
Will be stripped down to this:&lt;br /&gt;
&lt;br /&gt;
 Line number1Line number 2&lt;br /&gt;
&lt;br /&gt;
The correct behavior would be to strip to this:&lt;br /&gt;
&lt;br /&gt;
 Line number 1 Line number 2&lt;br /&gt;
&lt;br /&gt;
This bug exists for technical reasons. Treating newlines as spaces will cause endtags preceded by newlines to be incorrectly formatted. That is, this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&lt;br /&gt;
Hello&lt;br /&gt;
&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Should still strip to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hello&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And not this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Hello&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unfortunately, the way mod_strip is currently written, it is hard to treat both cases separately. Future versions of mod_strip may not remove newlines at all.&lt;br /&gt;
&lt;br /&gt;
=== Reporting a bug ===&lt;br /&gt;
&lt;br /&gt;
Please report bugs to [http://evanmiller.org Evan Miller].&lt;/div&gt;</summary>
		<author><name>Perusio</name></author>	</entry>

	</feed>