mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-08 23:08:42 +00:00
973cc43b64
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@303 48356398-32a2-884e-a903-53898d9a118a
37 lines
933 B
PHP
37 lines
933 B
PHP
<?php
|
|
|
|
require_once 'common.php';
|
|
|
|
?><!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html>
|
|
<head>
|
|
<title>HTMLPurifier UTF-8 Smoketest</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
</head>
|
|
<body>
|
|
<h1>HTMLPurifier UTF-8 Smoketest</h1>
|
|
<?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); ?>
|
|
<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>
|
|
</body>
|
|
</html>
|