mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 08:21:52 +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:
parent
e3c2063f69
commit
41c9226f3d
@ -52,4 +52,5 @@
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -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> <a id=1a class=q href="/imghp?hl=en&tab=wi" onClick="return qs(this);">Images</a> <a id=2a class=q href="http://groups.google.com/grphp?hl=en&tab=wg" onClick="return qs(this);">Groups</a> <a id=4a class=q href="http://news.google.com/nwshp?hl=en&tab=wn" onClick="return qs(this);">News</a> <a id=5a class=q href="http://froogle.google.com/frghp?hl=en&tab=wf" onClick="return qs(this);">Froogle</a> <a id=8a class=q href="/lochp?hl=en&tab=wl" onClick="return qs(this);">Local</a> <b><a href="/intl/en/options/" class=q>more »</a></b></font></td></tr></table><table cellspacing=0 cellpadding=0><tr><td width=25%> </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> <a href=/advanced_search?hl=en>Advanced Search</a><br> <a href=/preferences?hl=en>Preferences</a><br> <a href=/language_tools?hl=en>Language Tools</a></font></td></tr></table></form><br><br><font size=-1><a href="/ads/">Advertising Programs</a> - <a href=/services/>Business Solutions</a> - <a href=/about.html>About Google</a></font><p><font size=-2>©2006 Google</font></p></center></body></html>
|
</script><table border=0 cellspacing=0 cellpadding=4><tr><td nowrap><font size=-1><b>Web</b> <a id=1a class=q href="/imghp?hl=en&tab=wi" onClick="return qs(this);">Images</a> <a id=2a class=q href="http://groups.google.com/grphp?hl=en&tab=wg" onClick="return qs(this);">Groups</a> <a id=4a class=q href="http://news.google.com/nwshp?hl=en&tab=wn" onClick="return qs(this);">News</a> <a id=5a class=q href="http://froogle.google.com/frghp?hl=en&tab=wf" onClick="return qs(this);">Froogle</a> <a id=8a class=q href="/lochp?hl=en&tab=wl" onClick="return qs(this);">Local</a> <b><a href="/intl/en/options/" class=q>more »</a></b></font></td></tr></table><table cellspacing=0 cellpadding=0><tr><td width=25%> </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> <a href=/advanced_search?hl=en>Advanced Search</a><br> <a href=/preferences?hl=en>Preferences</a><br> <a href=/language_tools?hl=en>Language Tools</a></font></td></tr></table></form><br><br><font size=-1><a href="/ads/">Advertising Programs</a> - <a href=/services/>Business Solutions</a> - <a href=/about.html>About Google</a></font><p><font size=-2>©2006 Google</font></p></center></body></html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -127,4 +127,5 @@ if (objAdMgr.isSlotAvailable("leaderboard")) {
|
|||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -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. -->
|
<!-- Served by srv25 in 0.089 secs. -->
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -232,4 +232,5 @@
|
|||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -13,4 +13,5 @@
|
|||||||
<type id="mixed">Mixed</type>
|
<type id="mixed">Mixed</type>
|
||||||
</types>
|
</types>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -215,4 +215,5 @@ the usual things required are:</p>
|
|||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Configuration Backwards-Compatibility Breaks
|
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
|
facing Config class, as well as the ConfigSchema and ConfigSchema_Interchange
|
||||||
subsystems), was significantly revamped to make use of property lists.
|
subsystems), was significantly revamped to make use of property lists.
|
||||||
While most of the changes are internal, some internal APIs were changed for the
|
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.
|
Removed.
|
||||||
|
|
||||||
|
vim: et sw=4 sts=4
|
||||||
|
@ -373,4 +373,5 @@ Test.Example</pre>
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -64,4 +64,5 @@
|
|||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -79,4 +79,5 @@ help you find the correct functionality more quickly. Here they are:</p>
|
|||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -29,4 +29,5 @@ that itch, put it here!</p>
|
|||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -305,4 +305,5 @@ Mozilla on inside and needs -moz-outline, no IE support.</td></tr>
|
|||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -795,4 +795,5 @@ $form->excludes = array('form' => true);</strong></pre>
|
|||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -144,4 +144,5 @@ anchors is beyond me.</p>
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -116,4 +116,5 @@ if you decide to do that! Especially if you port HTML Purifier to C++.
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -227,4 +227,5 @@ effectively in the background.</p>
|
|||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -160,27 +160,14 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>$uri = $config->getDefinition('URI');
|
<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>
|
<p>
|
||||||
If you want to be really fancy, you can define a configuration directive
|
After adding a filter, you won't be able to set configuration directives.
|
||||||
for your filter and have HTML Purifier automatically manage whether or
|
Structure your code accordingly.
|
||||||
not your filter gets loaded or not (this is how internal filters manage
|
|
||||||
things):
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>HTMLPurifier_ConfigSchema::define(
|
<!-- XXX: link to new documentation system -->
|
||||||
'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>
|
|
||||||
|
|
||||||
<h2>Post-filter</h2>
|
<h2>Post-filter</h2>
|
||||||
|
|
||||||
@ -213,4 +200,5 @@ $uri->registerFilter(new HTMLPurifier_URIFilter_<strong>NameOfFilter</strong>())
|
|||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -1056,4 +1056,5 @@ a more in-depth look into character sets and encodings.</p>
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -149,4 +149,5 @@ with the core!</p>
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -5,4 +5,5 @@ function init() {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -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>
|
<td>Common security issues that may still arise (half-baked).</td>
|
||||||
</tr>
|
</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>
|
<tr>
|
||||||
<td>Development</td>
|
<td>Development</td>
|
||||||
<td><a href="dev-code-quality.txt">Code Quality Issues</a></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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -45,4 +45,5 @@ something like that?</li>
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -215,3 +215,4 @@ this is to squash all of the parents.
|
|||||||
|
|
||||||
But I don't need iteration.
|
But I don't need iteration.
|
||||||
|
|
||||||
|
vim: et sw=4 sts=4
|
||||||
|
@ -43,4 +43,5 @@ the development of this library in these forum threads:</p>
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -163,5 +163,3 @@ div.segment {width:250px; float:left; margin-top:1em;}
|
|||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
|
||||||
|
@ -127,5 +127,3 @@ style='color:black'>www.example.com/disclaimer</span></a><o:p></o:p></span></p>
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
|
||||||
|
@ -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"
|
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
|
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>
|
your own photo e-mails. </A></SPAN></NOBR></DIV></BODY></HTML>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
|
||||||
|
@ -21,6 +21,7 @@ foreach ($files as $file) {
|
|||||||
!is_file($file) ||
|
!is_file($file) ||
|
||||||
prefix_is('./docs/doxygen', $file) ||
|
prefix_is('./docs/doxygen', $file) ||
|
||||||
prefix_is('./library/standalone', $file) ||
|
prefix_is('./library/standalone', $file) ||
|
||||||
|
prefix_is('./docs/specimens', $file) ||
|
||||||
postfix_is('.ser', $file) ||
|
postfix_is('.ser', $file) ||
|
||||||
postfix_is('.tgz', $file) ||
|
postfix_is('.tgz', $file) ||
|
||||||
postfix_is('.patch', $file) ||
|
postfix_is('.patch', $file) ||
|
||||||
@ -38,6 +39,7 @@ foreach ($files as $file) {
|
|||||||
postfix_is('configdoc/usage.xml', $file) ||
|
postfix_is('configdoc/usage.xml', $file) ||
|
||||||
postfix_is('library/HTMLPurifier.includes.php', $file) ||
|
postfix_is('library/HTMLPurifier.includes.php', $file) ||
|
||||||
postfix_is('library/HTMLPurifier.safe-includes.php', $file) ||
|
postfix_is('library/HTMLPurifier.safe-includes.php', $file) ||
|
||||||
|
postfix_is('smoketests/xssAttacks.xml', $file) ||
|
||||||
// phpt files
|
// phpt files
|
||||||
postfix_is('.diff', $file) ||
|
postfix_is('.diff', $file) ||
|
||||||
postfix_is('.exp', $file) ||
|
postfix_is('.exp', $file) ||
|
||||||
@ -71,7 +73,7 @@ foreach ($files as $file) {
|
|||||||
case '.xsl':
|
case '.xsl':
|
||||||
case '.xml':
|
case '.xml':
|
||||||
case '.htc':
|
case '.htc':
|
||||||
$line = '<!-- %s -->';
|
$line = "<!-- %s\n-->";
|
||||||
break;
|
break;
|
||||||
case '.htmlt':
|
case '.htmlt':
|
||||||
$no_nl = true;
|
$no_nl = true;
|
||||||
|
@ -31,4 +31,4 @@ foreach ($raw_files as $file) {
|
|||||||
file_put_contents($file, $contents);
|
file_put_contents($file, $contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// vim: et sw=4 sts=4
|
||||||
|
@ -188,4 +188,5 @@
|
|||||||
-->
|
-->
|
||||||
</samples>
|
</samples>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -78,4 +78,5 @@ otherwise there will be problems.</p>
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -123,4 +123,5 @@ hr@size
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
<!-- vim: et sw=4 sts=4
|
||||||
|
-->
|
||||||
|
@ -1305,5 +1305,3 @@ JavaScript link location</desc>
|
|||||||
|
|
||||||
</attack>
|
</attack>
|
||||||
</xss>
|
</xss>
|
||||||
|
|
||||||
<!-- vim: et sw=4 sts=4 -->
|
|
||||||
|
@ -28,3 +28,5 @@ class HTMLPurifier_HTMLModule_NameTest extends HTMLPurifier_HTMLModuleHarness
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// vim: et sw=4 sts=4
|
||||||
|
@ -3,3 +3,4 @@ HTML.Trusted = true
|
|||||||
--HTML--
|
--HTML--
|
||||||
<ul><!-- Foo --></ul>
|
<ul><!-- Foo --></ul>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
|
--# vim: et sw=4 sts=4
|
||||||
|
@ -2,3 +2,4 @@
|
|||||||
HTML.Trusted = true
|
HTML.Trusted = true
|
||||||
--HTML--
|
--HTML--
|
||||||
<table><!-- foo --><tr><td>Foo</td></tr></table>
|
<table><!-- foo --><tr><td>Foo</td></tr></table>
|
||||||
|
--# vim: et sw=4 sts=4
|
||||||
|
@ -2,3 +2,4 @@
|
|||||||
HTML.Trusted = true
|
HTML.Trusted = true
|
||||||
--HTML--
|
--HTML--
|
||||||
<!-- Foobar -->
|
<!-- Foobar -->
|
||||||
|
--# vim: et sw=4 sts=4
|
||||||
|
Loading…
Reference in New Issue
Block a user