class SimplePie_Sanitize


Located at : UKNOWVA_ROOT/libraries/simplepie/simplepie.php

Properties

$base
$remove_div
$image_handler
$strip_htmltags
$encode_instead_of_strip
$strip_attributes
$strip_comments
$output_encoding
$enable_cache
$cache_location
$cache_name_function
$cache_class
$file_class
$timeout
$useragent
$force_fsockopen
$replace_url_attributes

Methods

remove_div($enable = true)

No description

set_image_handler($page = false)

No description

pass_cache_data($enable_cache = true, $cache_location = './cache', $cache_name_function = 'md5', $cache_class = 'SimplePie_Cache')

No description

pass_file_data($file_class = 'SimplePie_File', $timeout = 10, $useragent = '', $force_fsockopen = false)

No description

strip_htmltags($tags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style'))

No description

encode_instead_of_strip($encode = false)

No description

strip_attributes($attribs = array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc'))

No description

strip_comments($strip = false)

No description

set_output_encoding($encoding = 'UTF-8')

No description

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

sanitize($data, $type, $base = '')

No description

replace_urls($data, $tag, $attributes)

No description

do_strip_htmltags($match)

No description

Details

at line 14683
remove_div($enable = true)

Parameters

$enable

at line 14688
set_image_handler($page = false)

Parameters

$page

at line 14700
pass_cache_data($enable_cache = true, $cache_location = './cache', $cache_name_function = 'md5', $cache_class = 'SimplePie_Cache')

Parameters

$enable_cache
$cache_location
$cache_name_function
$cache_class

at line 14723
pass_file_data($file_class = 'SimplePie_File', $timeout = 10, $useragent = '', $force_fsockopen = false)

Parameters

$file_class
$timeout
$useragent
$force_fsockopen

at line 14746
strip_htmltags($tags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style'))

Parameters

$tags

at line 14765
encode_instead_of_strip($encode = false)

Parameters

$encode

at line 14770
strip_attributes($attribs = array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc'))

Parameters

$attribs

at line 14789
strip_comments($strip = false)

Parameters

$strip

at line 14794
set_output_encoding($encoding = 'UTF-8')

Parameters

$encoding

at line 14807
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

Parameters

array $element_attribute Element/attribute key/value pairs

at line 14812
sanitize($data, $type, $base = '')

Parameters

$data
$type
$base

at line 14945
replace_urls($data, $tag, $attributes)

Parameters

$data
$tag
$attributes

at line 14975
do_strip_htmltags($match)

Parameters

$match