0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-09-16 17:35:19 +00:00

Style refresh: add/remove vimlines, fix minor factual errors.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
Edward Z. Yang 2009-04-09 12:47:10 -04:00
parent e3c2063f69
commit 41c9226f3d
38 changed files with 74 additions and 55 deletions

View File

@ -52,4 +52,5 @@
</body>
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -16,4 +16,5 @@ function qs(el) {if (window.RegExp && window.encodeURIComponent) {var ue=el.href
// -->
</script><table border=0 cellspacing=0 cellpadding=4><tr><td nowrap><font size=-1><b>Web</b>&nbsp;&nbsp;&nbsp;&nbsp;<a id=1a class=q href="/imghp?hl=en&tab=wi" onClick="return qs(this);">Images</a>&nbsp;&nbsp;&nbsp;&nbsp;<a id=2a class=q href="http://groups.google.com/grphp?hl=en&tab=wg" onClick="return qs(this);">Groups</a>&nbsp;&nbsp;&nbsp;&nbsp;<a id=4a class=q href="http://news.google.com/nwshp?hl=en&tab=wn" onClick="return qs(this);">News</a>&nbsp;&nbsp;&nbsp;&nbsp;<a id=5a class=q href="http://froogle.google.com/frghp?hl=en&tab=wf" onClick="return qs(this);">Froogle</a>&nbsp;&nbsp;&nbsp;&nbsp;<a id=8a class=q href="/lochp?hl=en&tab=wl" onClick="return qs(this);">Local</a>&nbsp;&nbsp;&nbsp;&nbsp;<b><a href="/intl/en/options/" class=q>more&nbsp;&raquo;</a></b></font></td></tr></table><table cellspacing=0 cellpadding=0><tr><td width=25%>&nbsp;</td><td align=center><input type=hidden name=hl value=en><input maxlength=2048 size=55 name=q value="" title="Google Search"><br><input type=submit value="Google Search" name=btnG><input type=submit value="I'm Feeling Lucky" name=btnI></td><td valign=top nowrap width=25%><font size=-2>&nbsp;&nbsp;<a href=/advanced_search?hl=en>Advanced Search</a><br>&nbsp;&nbsp;<a href=/preferences?hl=en>Preferences</a><br>&nbsp;&nbsp;<a href=/language_tools?hl=en>Language Tools</a></font></td></tr></table></form><br><br><font size=-1><a href="/ads/">Advertising&nbsp;Programs</a> - <a href=/services/>Business Solutions</a> - <a href=/about.html>About Google</a></font><p><font size=-2>&copy;2006 Google</font></p></center></body></html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -127,4 +127,5 @@ if (objAdMgr.isSlotAvailable("leaderboard")) {
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -539,4 +539,5 @@ Retrieved from "<a href="http://en.wikipedia.org/wiki/Tai_Chi_Chuan">http://en.w
<!-- Served by srv25 in 0.089 secs. -->
</body></html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -232,4 +232,5 @@
</xsl:stylesheet>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -13,4 +13,5 @@
<type id="mixed">Mixed</type>
</types>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -215,4 +215,5 @@ the usual things required are:</p>
</body></html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -1,7 +1,7 @@
Configuration Backwards-Compatibility Breaks
In version 3.3.0, the configuration subsystem (composed of the outwards
In version 4.0.0, the configuration subsystem (composed of the outwards
facing Config class, as well as the ConfigSchema and ConfigSchema_Interchange
subsystems), was significantly revamped to make use of property lists.
While most of the changes are internal, some internal APIs were changed for the
@ -76,4 +76,4 @@ Any method that took $namespace, $directive now takes $key.
Removed.
vim: et sw=4 sts=4

View File

@ -373,4 +373,5 @@ Test.Example</pre>
</body>
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -64,4 +64,5 @@
</body></html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -79,4 +79,5 @@ help you find the correct functionality more quickly. Here they are:</p>
</body></html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -29,4 +29,5 @@ that itch, put it here!</p>
</body></html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -305,4 +305,5 @@ Mozilla on inside and needs -moz-outline, no IE support.</td></tr>
</body></html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -795,4 +795,5 @@ $form->excludes = array('form' => true);</strong></pre>
</body></html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -144,4 +144,5 @@ anchors is beyond me.</p>
</body>
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -116,4 +116,5 @@ if you decide to do that! Especially if you port HTML Purifier to C++.
</body>
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -227,4 +227,5 @@ effectively in the background.</p>
</body></html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -160,27 +160,14 @@
</p>
<pre>$uri = $config->getDefinition('URI');
$uri->addFilter(new HTMLPurifier_URIFilter_<strong>NameOfFilter</strong>());</pre>
$uri->addFilter(new HTMLPurifier_URIFilter_<strong>NameOfFilter</strong>(), $config);</pre>
<p>
If you want to be really fancy, you can define a configuration directive
for your filter and have HTML Purifier automatically manage whether or
not your filter gets loaded or not (this is how internal filters manage
things):
After adding a filter, you won't be able to set configuration directives.
Structure your code accordingly.
</p>
<pre>HTMLPurifier_ConfigSchema::define(
'URI', '<strong>NameOfFilter</strong>', false, 'bool',
'<strong>What your filter does.</strong>'
);
$uri = $config->getDefinition('URI', true);
$uri->registerFilter(new HTMLPurifier_URIFilter_<strong>NameOfFilter</strong>());
</pre>
<p>
Now, your filter will only be called when %URI.<strong>NameOfFilter</strong>
is set to true.
</p>
<!-- XXX: link to new documentation system -->
<h2>Post-filter</h2>
@ -213,4 +200,5 @@ $uri->registerFilter(new HTMLPurifier_URIFilter_<strong>NameOfFilter</strong>())
</body></html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -1056,4 +1056,5 @@ a more in-depth look into character sets and encodings.</p>
</body>
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -149,4 +149,5 @@ with the core!</p>
</body>
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -5,4 +5,5 @@ function init() {
}
</script>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -117,6 +117,12 @@ the code. They may be upgraded to HTML files or stay as TXT scratchpads.</p>
<td>Common security issues that may still arise (half-baked).</td>
</tr>
<tr>
<td>Development</td>
<td><a href="dev-config-bcbreaks.txt">Config BC Breaks</a></td>
<td>Backwards-incompatible changes in HTML Purifier 4.0.0</td>
</tr>
<tr>
<td>Development</td>
<td><a href="dev-code-quality.txt">Code Quality Issues</a></td>
@ -178,4 +184,5 @@ the code. They may be upgraded to HTML files or stay as TXT scratchpads.</p>
</body>
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -45,4 +45,5 @@ something like that?</li>
</body>
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -215,3 +215,4 @@ this is to squash all of the parents.
But I don't need iteration.
vim: et sw=4 sts=4

View File

@ -43,4 +43,5 @@ the development of this library in these forum threads:</p>
</body>
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -163,5 +163,3 @@ div.segment {width:250px; float:left; margin-top:1em;}
</body>
</html>
<!-- vim: et sw=4 sts=4 -->

View File

@ -127,5 +127,3 @@ style='color:black'>www.example.com/disclaimer</span></a><o:p></o:p></span></p>
</body>
</html>
<!-- vim: et sw=4 sts=4 -->

View File

@ -72,5 +72,3 @@ title="Join Windows Live to share photos using Windows Live Photo E-mail.">Onlin
pictures are available for 30 days. <A style="COLOR: #0088e4"
href="http://g.msn.com/5meen_us/175">Get Windows Live Mail desktop to create
your own photo e-mails. </A></SPAN></NOBR></DIV></BODY></HTML>
<!-- vim: et sw=4 sts=4 -->

View File

@ -21,6 +21,7 @@ foreach ($files as $file) {
!is_file($file) ||
prefix_is('./docs/doxygen', $file) ||
prefix_is('./library/standalone', $file) ||
prefix_is('./docs/specimens', $file) ||
postfix_is('.ser', $file) ||
postfix_is('.tgz', $file) ||
postfix_is('.patch', $file) ||
@ -38,6 +39,7 @@ foreach ($files as $file) {
postfix_is('configdoc/usage.xml', $file) ||
postfix_is('library/HTMLPurifier.includes.php', $file) ||
postfix_is('library/HTMLPurifier.safe-includes.php', $file) ||
postfix_is('smoketests/xssAttacks.xml', $file) ||
// phpt files
postfix_is('.diff', $file) ||
postfix_is('.exp', $file) ||
@ -71,7 +73,7 @@ foreach ($files as $file) {
case '.xsl':
case '.xml':
case '.htc':
$line = '<!-- %s -->';
$line = "<!-- %s\n-->";
break;
case '.htmlt':
$no_nl = true;

View File

@ -31,4 +31,4 @@ foreach ($raw_files as $file) {
file_put_contents($file, $contents);
}
// vim: et sw=4 sts=4

View File

@ -188,4 +188,5 @@
-->
</samples>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -78,4 +78,5 @@ otherwise there will be problems.</p>
</body>
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -123,4 +123,5 @@ hr@size
</body>
</html>
<!-- vim: et sw=4 sts=4 -->
<!-- vim: et sw=4 sts=4
-->

View File

@ -1305,5 +1305,3 @@ JavaScript link location</desc>
</attack>
</xss>
<!-- vim: et sw=4 sts=4 -->

View File

@ -28,3 +28,5 @@ class HTMLPurifier_HTMLModule_NameTest extends HTMLPurifier_HTMLModuleHarness
}
}
// vim: et sw=4 sts=4

View File

@ -3,3 +3,4 @@ HTML.Trusted = true
--HTML--
<ul><!-- Foo --></ul>
--EXPECT--
--# vim: et sw=4 sts=4

View File

@ -2,3 +2,4 @@
HTML.Trusted = true
--HTML--
<table><!-- foo --><tr><td>Foo</td></tr></table>
--# vim: et sw=4 sts=4

View File

@ -2,3 +2,4 @@
HTML.Trusted = true
--HTML--
<!-- Foobar -->
--# vim: et sw=4 sts=4