mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-30 01:00:00 +02:00
[3.1.0] Deprecate addFilter; set up Filter namespace
- Added EXTERNAL dependency config-schema value - Fix safe bug in Printer_HTMLDefinition - Fixed broken smoketests git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1669 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -19,9 +19,9 @@ $string = '<object width="425" height="350"><param name="movie" value="http://ww
|
||||
|
||||
$regular_purifier = new HTMLPurifier();
|
||||
|
||||
$youtube_purifier = new HTMLPurifier();
|
||||
require_once 'HTMLPurifier/Filter/YouTube.php';
|
||||
$youtube_purifier->addFilter(new HTMLPurifier_Filter_YouTube());
|
||||
$youtube_purifier = new HTMLPurifier(array(
|
||||
'Filter.YouTube' => true,
|
||||
));
|
||||
|
||||
?>
|
||||
<h2>Unpurified</h2>
|
||||
|
Reference in New Issue
Block a user