\SimplePie_Sanitize
Used for data cleanup and post-processing
This class can be overloaded with
Synopsis
class SimplePie_Sanitize
{
- // members
- public $base;
- public boolean $remove_div = true;
- public string $image_handler = '';
- public array $strip_htmltags = ;
- public boolean $encode_instead_of_strip = false;
- public array $strip_attributes = ;
- 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 $replace_url_attributes = NULL;
- // methods
- public void __construct()
- public void remove_div()
- public void set_image_handler()
- public void set_registry()
- public void pass_cache_data()
- public void pass_file_data()
- public void strip_htmltags()
- public void encode_instead_of_strip()
- public void strip_attributes()
- public void strip_comments()
- public void set_output_encoding()
- public void set_url_replacements()
- public void sanitize()
- protected void preprocess()
- public void replace_urls()
- public void do_strip_htmltags()
- protected void strip_tag()
- protected void strip_attr()
Tasks
Line | Task |
---|---|
54+ | 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 |
Members
public
- $base
- $cache_location
- $cache_name_function
- $enable_cache
- $encode_instead_of_strip
- $force_fsockopen
- $image_handler
- $output_encoding
- $remove_div
- $replace_url_attributes
- $strip_attributes
- $strip_comments
- $timeout
- $useragent
Methods
protected
public
- __construct()
- encode_instead_of_strip()
- pass_cache_data()
- pass_file_data()
- remove_div()
- replace_urls()
- sanitize()
- set_image_handler()
- set_output_encoding()
- set_registry()
- set_url_replacements() — Set element/attribute key/value pairs of HTML attributes containing URLs that need to be resolved relative to the feed
- strip_attributes()
- strip_comments()