From 2254ac957d09a1ccbe6397e14bdbcf90000d6922 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sat, 26 Mar 2011 00:27:15 +0000 Subject: [PATCH] Add URL shortening to demo, and some more options. Signed-off-by: Edward Z. Yang --- demo.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/demo.php b/demo.php index 005624c..a312de8 100644 --- a/demo.php +++ b/demo.php @@ -43,6 +43,8 @@ $allowed_lite = array( 'HTML.TidyLevel', 'HTML.Doctype', 'HTML.Allowed', + 'HTML.SafeObject', + 'HTML.FlashCompat', 'CSS.AllowedProperties', 'AutoFormat', '-AutoFormat.Custom', @@ -60,8 +62,8 @@ if (!empty($_REQUEST['strict'])) { if (!empty($_REQUEST['experimental'])) { //require_once 'HTMLPurifier/Lexer/PH5P.php'; //$config->set('Core', 'LexerImpl', 'PH5P'); - $config->set('HTML.SafeObject', true); - $config->set('HTML.SafeEmbed', true); + //$config->set('HTML.SafeObject', true); + //$config->set('HTML.FlashCompat', true); } if (file_exists('demo.custom.php') && isLocal()) include 'demo.custom.php'; @@ -187,6 +189,10 @@ if (getFormMethod() == 'post') { // start POST validation notice +

Share this purification using the bit.ly URL shortener.

+
> - Use experimental features: name="experimental"> + Use experimental features: name="experimental">
-- 2.11.4.GIT