2006-07-29 17:38:28 +00:00
|
|
|
<?php
|
|
|
|
|
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
|
|
|
|
{
|
2008-12-06 07:28:20 +00:00
|
|
|
|
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
|
|
|
}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-07-29 17:38:28 +00:00
|
|
|
}
|
|
|
|
|
2008-12-06 09:24:59 +00:00
|
|
|
// vim: et sw=4 sts=4
|