Location: PHPKode > projects > Volunteer Management OpenSource Software > vmoss_alpha02/3rd/htmlpurifier/smoketests/utf8.php

// this file is encoded in UTF-8, please don't let your editor mangle it

require_once 'common.php';

echo '<?xml version="1.0" encoding="UTF-8" ?>';
?><!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    <title>HTML Purifier UTF-8 Smoketest</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<h1>HTML Purifier UTF-8 Smoketest</h1>

$purifier = new HTMLPurifier();
$string = '
    <li><b>Chinese</b> - 太極拳</li>
    <li><b>Russian</b> - ЊЎЖ</li>
    <li><b>Arabic</b> - لمنس</li>

<?php echo $string; ?>
<?php echo $purifier->purify($string); ?>
<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>
Return current item: Volunteer Management OpenSource Software