Class icms_core_Textsanitizer
Class to "clean up" text for various uses
Singleton
Category: ICMS
Copyright: (c) 2000-2003 The Xoops Project - www.xoops.org
License: GNU General Public License (GPL)
Author: Kazumi Ono onokazu@xoops.org
Author: Goghs Cheng
Located at core/Textsanitizer.php
public
|
#
__construct( )
Constructor of this class
Gets allowed html tags from admin config settings
|
public static
object
|
|
public
array
|
|
public
string
|
|
public
string
|
|
public
string
|
#
xoopsCodeDecode( string & $text, boolean $allowimage = 1 )
Replace XoopsCodes with their equivalent HTML formatting |
public
string
|
|
public
boolean
|
|
public
string
|
|
public
string
|
#
addSlashes( string $text )
Note: magic_quotes_gpc and magic_quotes_runtime are deprecated as of PHP5.3.0 |
public
string
|
#
stripSlashesGPC( string $text )
Note: magic_quotes_gpc and magic_quotes_runtime are deprecated as of PHP5.3.0 |
public
string
|
|
public static
string
|
|
public
|
|
public
string
|
#
displayTarea( string $text, boolean $html = 0, boolean $smiley = 1, boolean $xcode = 1, boolean $image = 1, boolean $br = 1 )
Filters textarea form data in DB for display |
public
string
|
#
previewTarea( string $text, boolean $html = 0, boolean $smiley = 1, boolean $xcode = 1, boolean $image = 1, boolean $br = 1 )
Filters textarea form data submitted for preview |
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
#
sanitizeForDisplay( unknown_type $text, unknown_type $allowhtml = 0, unknown_type $smiley = 1, unknown_type $bbcode = 1 )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
makeTareaData4Show( unknown_type & $text, unknown_type $html = 0, unknown_type $smiley = 1, unknown_type $xcode = 1 )
|
public
|
|
public
|
#
makeTareaData4Preview( unknown_type & $text, unknown_type $html = 0, unknown_type $smiley = 1, unknown_type $xcode = 1 )
|
public
|
|
public
|
|
public
|
#
oopsStripSlashesGPC( $text )
Note: magic_quotes_gpc and magic_quotes_runtime are deprecated as of PHP 5.3.0 |
public
|
#
oopsStripSlashesRT( unknown_type $text )
Note: magic_quotes_gpc and magic_quotes_runtime are deprecated as of PHP 5.3.0 |
public
|
|
public
|
|
public
|
|
public
object
|
#
icmsCodeDecode_extended( integer $text, boolean $allowimage = 1 )
This function gets allowed plugins from DB and loads them in the sanitizer |
public
boolean
|
|
public
array
|
#
icmsExecuteExtension( string $name, string $text )
Executes file with a certain extension using call_user_func_array |
public
string
|
|
public
string
|
|
public
string
|
public
array
|
$displaySmileys
|
#
array()
|
public
array
|
$allSmileys
|
#
array()
|
public
|
$censorConf
|