1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8class TikiFilter_HtmlPurifier implements Zend\Filter\FilterInterface
9{
10	private $cache;
11
12	function __construct($cacheFolder)
13	{
14		$this->cache = $cacheFolder;
15	}
16
17	function filter($data)
18	{
19		require_once('lib/htmlpurifier_tiki/HTMLPurifier.tiki.php');
20
21		return HTMLPurifier($data);
22	}
23}
24