2006-07-29 17:38:28 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/Strategy/Composite.php';
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/Strategy/RemoveForeignElements.php';
|
|
|
|
require_once 'HTMLPurifier/Strategy/MakeWellFormed.php';
|
|
|
|
require_once 'HTMLPurifier/Strategy/FixNesting.php';
|
2006-08-14 00:27:15 +00:00
|
|
|
require_once 'HTMLPurifier/Strategy/ValidateAttributes.php';
|
2006-07-29 17:38:28 +00:00
|
|
|
|
2006-08-20 21:59:41 +00:00
|
|
|
/**
|
|
|
|
* Core strategy composed of the big four strategies.
|
|
|
|
*/
|
2006-07-29 17:38:28 +00:00
|
|
|
class HTMLPurifier_Strategy_Core extends HTMLPurifier_Strategy_Composite
|
|
|
|
{
|
|
|
|
|
2007-11-25 02:24:39 +00:00
|
|
|
public function __construct() {
|
2006-07-29 17:38:28 +00:00
|
|
|
$this->strategies[] = new HTMLPurifier_Strategy_RemoveForeignElements();
|
|
|
|
$this->strategies[] = new HTMLPurifier_Strategy_MakeWellFormed();
|
|
|
|
$this->strategies[] = new HTMLPurifier_Strategy_FixNesting();
|
2006-08-14 00:27:15 +00:00
|
|
|
$this->strategies[] = new HTMLPurifier_Strategy_ValidateAttributes();
|
2006-07-29 17:38:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|