From 7a40f4354b32809af3d0cfd6e3af0eda02ab0e0a Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 12 May 2012 17:57:41 -0700 Subject: some important stuff we'll need --- lib/htmlpurifier/smoketests/basic.php | 73 +++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 lib/htmlpurifier/smoketests/basic.php (limited to 'lib/htmlpurifier/smoketests/basic.php') diff --git a/lib/htmlpurifier/smoketests/basic.php b/lib/htmlpurifier/smoketests/basic.php new file mode 100644 index 000000000..1c361727c --- /dev/null +++ b/lib/htmlpurifier/smoketests/basic.php @@ -0,0 +1,73 @@ + true, + 'legacy' => true +); + +$page = isset($_GET['p']) ? $_GET['p'] : false; +if (!isset($allowed[$page])) $page = false; + +$strict = isset($_GET['d']) ? (bool) $_GET['d'] : false; + +echo ''; +?> + + + + + + + + HTML Purifier Basic Smoketest + + + + + +
: +Swap
+Valid XHTML 1.0 Transitional +
+set('Attr.EnableID', true); + $config->set('HTML.Strict', $strict); + $purifier = new HTMLPurifier($config); + echo $purifier->purify(file_get_contents("basic/$page.html")); +} else { + ?> +

HTML Purifier Basic Smoketest Index

+ + + +