From 4f8f022eaca50bb9869d2561d5168a30fa658b79 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Wed, 6 Dec 2006 22:04:16 +0000 Subject: [PATCH] [1.3.1] Added HTMLPurifier.func.php stub for a convenient function to call the library git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@598 48356398-32a2-884e-a903-53898d9a118a --- NEWS | 3 ++- library/HTMLPurifier.func.php | 21 ++++++++++++++++++ smoketests/loadFunc.php | 40 +++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 library/HTMLPurifier.func.php create mode 100644 smoketests/loadFunc.php diff --git a/NEWS b/NEWS index fedbc2fa..6c26835f 100644 --- a/NEWS +++ b/NEWS @@ -13,7 +13,8 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier (major feature release) 1.3.1, unknown release date -(security/bugfix release) +(security/bugfix/minor feature release) +! Added HTMLPurifier.func.php stub for a convenient function to call the library 1.3.0, released 2006-11-26 # Invalid images are now removed, rather than replaced with a dud diff --git a/library/HTMLPurifier.func.php b/library/HTMLPurifier.func.php new file mode 100644 index 00000000..50e7c9b9 --- /dev/null +++ b/library/HTMLPurifier.func.php @@ -0,0 +1,21 @@ +purify($html, $config); +} + +?> \ No newline at end of file diff --git a/smoketests/loadFunc.php b/smoketests/loadFunc.php new file mode 100644 index 00000000..d93cc0a7 --- /dev/null +++ b/smoketests/loadFunc.php @@ -0,0 +1,40 @@ +'; + +function printb($bool) { + echo '' . ($bool ? 'Pass' : 'Fail') . ''; +} + +function printEval($code) { + echo '
' . htmlspecialchars($code) . '
'; + eval($code); +} + +?> + + + HTML Purifier Function Include Smoketest + + + +

HTML Purifier Function Include Smoketest

+ +

Tests whether or not the includes are done properly and whether or +not the library is lazy loaded.

+ + + +

HTMLPurifier class doesn't exist:

+ + + +

HTMLPurifier class exists:

+ + + \ No newline at end of file