mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-03-14 02:27:02 +00:00
commit
04756a9feb
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user