Property | Type | Description | |
---|---|---|---|
$add_attributes | |||
$base | Private vars | ||
$cache_location | |||
$cache_name_function | |||
$enable_cache | |||
$encode_instead_of_strip | |||
$force_fsockopen | |||
$image_handler | |||
$output_encoding | |||
$remove_div | Options | ||
$replace_url_attributes | |||
$strip_attributes | |||
$strip_comments | |||
$strip_htmltags | |||
$timeout | |||
$useragent |
Method | Description | |
---|---|---|
__construct ( ) | ||
add_attributes ( $attribs = ['audio' => ['preload' => 'none'], 'iframe' => ['sandbox' => 'allow-scripts allow-same-origin'], 'video' => ['preload' => 'none']] ) | ||
do_strip_htmltags ( $match ) | ||
encode_instead_of_strip ( $encode = false ) | ||
pass_cache_data ( $enable_cache = true, $cache_location = './cache', $cache_name_function = 'md5', $cache_class = 'SimplePie_Cache' ) | ||
pass_file_data ( $file_class = 'SimplePie_File', $timeout = 10, $useragent = '', $force_fsockopen = false ) | ||
remove_div ( $enable = true ) | ||
replace_urls ( $document, $tag, $attributes ) | ||
sanitize ( $data, $type, $base = '' ) | ||
set_image_handler ( $page = false ) | ||
set_output_encoding ( $encoding = 'UTF-8' ) | ||
set_registry ( SimplePie_Registry $registry ) | ||
set_url_replacements ( array | null $element_attribute = null ) | Set element/attribute key/value pairs of HTML attributes containing URLs that need to be resolved relative to the feed | |
strip_attributes ( $attribs = ['bgsound', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc'] ) | ||
strip_comments ( $strip = false ) | ||
strip_htmltags ( $tags = ['base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style'] ) |
Method | Description | |
---|---|---|
add_attr ( $tag, $valuePairs, $document ) | ||
preprocess ( $html, $type ) | ||
strip_attr ( $attrib, $xpath ) | ||
strip_tag ( $tag, $document, $xpath, $type ) |
public add_attributes ( $attribs = ['audio' => ['preload' => 'none'], 'iframe' => ['sandbox' => 'allow-scripts allow-same-origin'], 'video' => ['preload' => 'none']] ) |
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 set_registry ( SimplePie_Registry $registry ) | ||
$registry | SimplePie_Registry |
public set_url_replacements ( array | null $element_attribute = null ) | ||
$element_attribute | array | null | Element/attribute key/value pairs, null for default |
public strip_attributes ( $attribs = ['bgsound', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc'] ) |
public strip_htmltags ( $tags = ['base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style'] ) |