[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/SimplePie/ -> Sanitize.php (summary)

SimplePie A PHP-Based RSS and Atom Feed Framework. Takes the hard work out of managing a complete RSS/Atom solution.

Author: Ryan Parman
Author: Geoffrey Sneddon
Author: Ryan McCue
Copyright: 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
License: http://www.opensource.org/licenses/bsd-license.php BSD License
Version: 1.3.1
File Size: 554 lines (16 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SimplePie_Sanitize:: (18 methods):
  __construct()
  remove_div()
  set_image_handler()
  set_registry()
  pass_cache_data()
  pass_file_data()
  strip_htmltags()
  encode_instead_of_strip()
  strip_attributes()
  strip_comments()
  set_output_encoding()
  set_url_replacements()
  sanitize()
  preprocess()
  replace_urls()
  do_strip_htmltags()
  strip_tag()
  strip_attr()


Class: SimplePie_Sanitize  - X-Ref

Used for data cleanup and post-processing

This class can be overloaded with {@see SimplePie::set_sanitize_class()}

__construct()   X-Ref
No description

remove_div($enable = true)   X-Ref
No description

set_image_handler($page = false)   X-Ref
No description

set_registry(SimplePie_Registry $registry)   X-Ref
No description

pass_cache_data($enable_cache = true, $cache_location = './cache', $cache_name_function = 'md5', $cache_class = 'SimplePie_Cache')   X-Ref
No description

pass_file_data($file_class = 'SimplePie_File', $timeout = 10, $useragent = '', $force_fsockopen = false)   X-Ref
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')   X-Ref
No description

encode_instead_of_strip($encode = false)   X-Ref
No description

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

strip_comments($strip = false)   X-Ref
No description

set_output_encoding($encoding = 'UTF-8')   X-Ref
No description

set_url_replacements($element_attribute = null)   X-Ref
Set element/attribute key/value pairs of HTML attributes
containing URLs that need to be resolved relative to the feed

Defaults to |a|@href, |area|@href, |blockquote|@cite, |del|@cite,
|form|@action, |img|@longdesc, |img|@src, |input|@src, |ins|@cite,
|q|@cite

since: 1.0
param: array|null $element_attribute Element/attribute key/value pairs, null for default

sanitize($data, $type, $base = '')   X-Ref
No description

preprocess($html, $type)   X-Ref
No description

replace_urls($document, $tag, $attributes)   X-Ref
No description

do_strip_htmltags($match)   X-Ref
No description

strip_tag($tag, $document, $type)   X-Ref
No description

strip_attr($attrib, $document)   X-Ref
No description



Generated: Sun Sep 15 01:00:03 2019 Cross-referenced by PHPXref 0.7.1