HTMLPurifier defangs arbitrary submitted HTML. We're using it in the OStatus plugin, but it may be valuable for other parts of the codebase (I think OEmbed might benefit, for example).
		
			
				
	
	
		
			12 lines
		
	
	
		
			274 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			274 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
/**
 | 
						|
 * This is a stub include that automatically configures the include path.
 | 
						|
 */
 | 
						|
 | 
						|
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path() );
 | 
						|
require_once 'HTMLPurifier/Bootstrap.php';
 | 
						|
require_once 'HTMLPurifier.autoload.php';
 | 
						|
 | 
						|
// vim: et sw=4 sts=4
 |