aboutsummaryrefslogtreecommitdiffstats
path: root/library/HTMLPurifier/Strategy/Core.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/HTMLPurifier/Strategy/Core.php')
-rw-r--r--library/HTMLPurifier/Strategy/Core.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/library/HTMLPurifier/Strategy/Core.php b/library/HTMLPurifier/Strategy/Core.php
new file mode 100644
index 000000000..d90e15860
--- /dev/null
+++ b/library/HTMLPurifier/Strategy/Core.php
@@ -0,0 +1,18 @@
+<?php
+
+/**
+ * Core strategy composed of the big four strategies.
+ */
+class HTMLPurifier_Strategy_Core extends HTMLPurifier_Strategy_Composite
+{
+
+ public function __construct() {
+ $this->strategies[] = new HTMLPurifier_Strategy_RemoveForeignElements();
+ $this->strategies[] = new HTMLPurifier_Strategy_MakeWellFormed();
+ $this->strategies[] = new HTMLPurifier_Strategy_FixNesting();
+ $this->strategies[] = new HTMLPurifier_Strategy_ValidateAttributes();
+ }
+
+}
+
+// vim: et sw=4 sts=4