HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/library/HTMLPurifier/URIFilter/DisableResources.php
Go to the documentation of this file.
00001 <?php
00002 
00003 class HTMLPurifier_URIFilter_DisableResources extends HTMLPurifier_URIFilter
00004 {
00005     public $name = 'DisableResources';
00006     public function filter(&$uri, $config, $context) {
00007         return !$context->get('EmbeddedURI', true);
00008     }
00009 }
00010 
00011 // vim: et sw=4 sts=4