Class Sanitizer
Class to "clean up" text for various uses
- Xoops\Core\Text\Sanitizer\SanitizerConfigurable
- 
			 Xoops\Core\Text\Sanitizer Xoops\Core\Text\Sanitizer
Direct known subclasses
MyTextSanitizerIndirect known subclasses
MyTextSanitizerExtendedPackage: Xoops\Core\Text
Category: Sanitizer
Copyright: 2000-2015 XOOPS Project (http://xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Kazumi Ono onokazu@xoops.org
Author: Goghs Cheng (http://www.eqiao.com, http://www.devbeez.com/)
Author: Taiwen Jiang phppp@users.sourceforge.net
Author: Richard Griffith richard@geekwright.com
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Text/Sanitizer.php
| 
			 public static
			 | |
| 
			 protected 
			
			
			 | 
		#
		 __construct( )Construct - protected to enforce singleton. The singleton pattern minimizes the impact of the expense of the setup logic. | 
| 
			 public 
			 | 
		#
		 getShortCodesInstance( )get our ShortCodes instance. This is intended for internal use, as it is just the bare instance. | 
| 
			 public 
			 | 
		#
		 getShortCodes( )get our ShortCodes instance, but make sure extensions are loaded so caller can extend and override | 
| 
			 public 
			
			
			 | 
		#
		 addPatternCallback( string $pattern, callable $callback )Add a preg_replace_callback pattern and callback | 
| 
			 public 
			string
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public 
			string
			
			 | 
		#
		 htmlSpecialChars( string $text, integer $quote_style = ENT_QUOTES )Convert special characters to HTML entities | 
| 
			 public 
			string
			
			 | 
		#
		 escapeForJavascript( string $text )Convert special characters to HTML entities with special attention to quotes for strings which may be used in a javascript context. | 
| 
			 public 
			string
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 protected 
			string
			
			 | 
		#
		 xoopsCodeDecode( string $text, boolean $allowImage = false )Apply extension specified transformation, such as ShortCodes, to the supplied text | 
| 
			 public 
			string
			
			 | 
		#
		 filterForDisplay( string $text, boolean $html = false, boolean $smiley = true, boolean $xcode = true, boolean $image = true, boolean $br = true )Filters data for display | 
| 
			 public 
			string
			
			 | 
		#
		 displayTarea( string $text, boolean $html = false, boolean $smiley = true, boolean $xcode = true, boolean $image = true, boolean $br = true )Filters textarea form data submitted for preview | 
| 
			 public 
			string
			
			 | 
		#
		 previewTarea( string $text, integer $html = 0, integer $smiley = 1, integer $xcode = 1, integer $image = 1, integer $br = 1 )Filters textarea form data submitted for preview | 
| 
			 public 
			string
			
			 | |
| 
			 protected 
			string
			
			 | 
		#
		 prefilterCodeBlocks( string $text )Encode [code] elements as base64 to prevent processing of contents by other filters | 
| 
			 protected 
			string
			
			 | 
		#
		 postfilterCodeBlocks( string $text )convert code blocks, previously processed by prefilterCodeBlocks(), for display | 
| 
			 public 
			string[]
			
			 | |
| 
			 public 
			string[]
			
			 | 
		#
		 getDhtmlEditorSupport( string $extension, string $textAreaId )Provide button and javascript code used by the DhtmlTextArea | 
| 
			 public 
			array
			
			 | |
| 
			 protected 
			
			
			 | |
| 
			 protected 
			object|null
			
			 | |
| 
			 protected 
			 | |
| 
			 protected 
			 | |
| 
			 protected 
			mixed
			
			 | |
| 
			 public 
			mixed
			
			 | |
| 
			 public 
			string
			
			 | 
		#
		 textFilter( string $text, boolean $force = false )Filter out possible malicious text with the textfilter filter | 
| 
			 public 
			string
			
			 | |
| 
			 public 
			mixed
			
			 | |
| 
			 public 
			
			
			 | 
| 
			getDefaultConfig()
		 | 
| 
			protected static 
			array
		 | $defaultConfiguration default configuration values | 
				#
				 [
    'enabled' => true,
    'prefilters' => [],
    'postfilters' => ['embed', 'clickable'],
] | 
| 
			protected  
			boolean
		 | $extensionsLoaded Have extensions been loaded? | 
				#
				 false | 
| 
			protected  
			 | $shortcodes | |
| 
			protected  
			array
		 | $patterns | 
				#
				 array() | 
| 
			protected  
			 | $config |