2006-08-17 23:36:35 +00:00
|
|
|
<?php
|
|
|
|
|
2007-01-11 22:37:54 +00:00
|
|
|
// this file is encoded in UTF-8, please don't let your editor mangle it
|
|
|
|
|
2006-08-19 17:53:59 +00:00
|
|
|
require_once 'common.php';
|
2006-08-17 23:36:35 +00:00
|
|
|
|
2006-11-24 06:26:02 +00:00
|
|
|
echo '<?xml version="1.0" encoding="UTF-8" ?>';
|
2006-08-17 23:36:35 +00:00
|
|
|
?><!DOCTYPE html
|
2006-08-14 13:27:18 +00:00
|
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
2006-11-24 06:26:02 +00:00
|
|
|
<title>HTML Purifier UTF-8 Smoketest</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
2006-08-14 13:27:18 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2006-11-24 06:26:02 +00:00
|
|
|
<h1>HTML Purifier UTF-8 Smoketest</h1>
|
2006-08-14 13:27:18 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$purifier = new HTMLPurifier();
|
|
|
|
$string = '
|
|
|
|
<ul>
|
|
|
|
<li><b>Chinese</b> - 太極拳</li>
|
|
|
|
<li><b>Russian</b> - ЊЎЖ</li>
|
|
|
|
<li><b>Arabic</b> - لمنس</li>
|
|
|
|
</ul>
|
|
|
|
';
|
|
|
|
|
|
|
|
?>
|
|
|
|
<h2>Raw</h2>
|
|
|
|
<?php echo $string; ?>
|
|
|
|
<h2>Purified</h2>
|
|
|
|
<?php echo $purifier->purify($string); ?>
|
2006-08-17 23:36:35 +00:00
|
|
|
<h2>Analysis</h2>
|
|
|
|
<p>The content in <strong>Raw</strong> should be equivalent to the content
|
|
|
|
in <strong>Purified</strong>. If <strong>Purified</strong> is mangled, there
|
|
|
|
is likely trouble a-brewing in the library. If
|
|
|
|
both are mangled, check to see that this file was not corrupted.</p>
|
2006-08-14 13:27:18 +00:00
|
|
|
</body>
|
|
|
|
</html>
|