Class SimplePie_Sanitize
Used for data cleanup and post-processing
This class can be overloaded with SimplePie_Core::set_sanitize_class()
Package:
SimplePie
Todo: Move to using an actual HTML parser (this will allow tags to be properly stripped, and to switch between HTML and XHTML), this will also make it easier to shorten a string while preserving HTML tags
Located at SimplePie/Sanitize.php
Todo: Move to using an actual HTML parser (this will allow tags to be properly stripped, and to switch between HTML and XHTML), this will also make it easier to shorten a string while preserving HTML tags
Located at SimplePie/Sanitize.php
public
|
|
public
|
|
public
|
|
public
|
#
pass_cache_data( $enable_cache = true, $cache_location = './cache', $cache_name_function = 'md5', $cache_class = 'SimplePie_Cache' )
|
public
|
#
pass_file_data( $file_class = 'SimplePie_File', $timeout = 10, $useragent = '', $force_fsockopen = false )
|
public
|
#
strip_htmltags( $tags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style') )
|
public
|
|
public
|
#
strip_attributes( $attribs = array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc') )
|
public
|
|
public
|
|
public
|
#
set_url_replacements( array $element_attribute = array('a' => 'href', 'area' => 'href', 'blockquote' => 'cite', 'del' => 'cite', 'form' => 'action', 'img' => array('longdesc', 'src'), 'input' => 'src', 'ins' => 'cite', 'q' => 'cite') )
Set element/attribute key/value pairs of HTML attributes containing URLs that need to be resolved relative to the feed |
public
|
|
protected
|
|
public
|
|
public
|
|
protected
|
|
protected
|
public
|
$base |
|
|
public
boolean
|
$remove_div | true |
|
public
string
|
$image_handler | '' |
|
public
array
|
$strip_htmltags | array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style') |
|
public
boolean
|
$encode_instead_of_strip | false |
|
public
array
|
$strip_attributes | array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc') |
|
public
boolean
|
$strip_comments | false |
|
public
string
|
$output_encoding | 'UTF-8' |
|
public
boolean
|
$enable_cache | true |
|
public
string
|
$cache_location | './cache' |
|
public
string
|
$cache_name_function | 'md5' |
|
public
integer
|
$timeout | 10 |
|
public
string
|
$useragent | '' |
|
public
boolean
|
$force_fsockopen | false |
|
public
array
|
$replace_url_attributes | array(
'a' => 'href',
'area' => 'href',
'blockquote' => 'cite',
'del' => 'cite',
'form' => 'action',
'img' => array('longdesc', 'src'),
'input' => 'src',
'ins' => 'cite',
'q' => 'cite'
) |