]> git.wh0rd.org - tt-rss.git/blame - lib/htmlpurifier/library/HTMLPurifier/Strategy/Composite.php
remove Archived articles from Uncategorized view
[tt-rss.git] / lib / htmlpurifier / library / HTMLPurifier / Strategy / Composite.php
CommitLineData
f45a286b
AD
1<?php
2
3/**
4 * Composite strategy that runs multiple strategies on tokens.
5 */
6abstract class HTMLPurifier_Strategy_Composite extends HTMLPurifier_Strategy
7{
8
9 /**
10 * List of strategies to run tokens through.
11 */
12 protected $strategies = array();
13
f45a286b
AD
14 public function execute($tokens, $config, $context) {
15 foreach ($this->strategies as $strategy) {
16 $tokens = $strategy->execute($tokens, $config, $context);
17 }
18 return $tokens;
19 }
20
21}
22
23// vim: et sw=4 sts=4