0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-03-14 02:27:02 +00:00

Merge pull request #84 from hsegura/patch-2

Update basic.php
This commit is contained in:
Edward Z. Yang 2016-05-11 11:04:19 -07:00
commit 04756a9feb

View File

@ -16,15 +16,19 @@ $strict = isset($_GET['d']) ? (bool) $_GET['d'] : false;
echo '<?xml version="1.0" encoding="UTF-8" ?>';
?>
<?php if ($strict) { ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1- Strict.dtd">
<?php } else { ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-loose.dtd">
<?php } ?>
<?php
if ($strict) {
$str="Strict";
$str2="strict.dtd";
}
else {
$str="Transitional";
$str2="loose.dtd";
}
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 '.$str.'//EN"';
echo '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-'.$str2.'">';
?>
<html>
<head>
<title>HTML Purifier Basic Smoketest</title>