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); +} + +?> + + +
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