PHP 클래스 SimplePie_Sanitize, simplepie

This class can be overloaded with {@see \SimplePie::set_sanitize_class()}
파일 보기 프로젝트 열기: simplepie/simplepie 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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'] )

보호된 메소드들

메소드 설명
add_attr ( $tag, $valuePairs, $document )
preprocess ( $html, $type )
strip_attr ( $attrib, $xpath )
strip_tag ( $tag, $document, $xpath, $type )

메소드 상세

__construct() 공개 메소드

public __construct ( )

add_attr() 보호된 메소드

protected add_attr ( $tag, $valuePairs, $document )

add_attributes() 공개 메소드

public add_attributes ( $attribs = ['audio' => ['preload' => 'none'], 'iframe' => ['sandbox' => 'allow-scripts allow-same-origin'], 'video' => ['preload' => 'none']] )

do_strip_htmltags() 공개 메소드

public do_strip_htmltags ( $match )

encode_instead_of_strip() 공개 메소드

public encode_instead_of_strip ( $encode = false )

pass_cache_data() 공개 메소드

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

pass_file_data() 공개 메소드

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

preprocess() 보호된 메소드

protected preprocess ( $html, $type )

remove_div() 공개 메소드

public remove_div ( $enable = true )

replace_urls() 공개 메소드

public replace_urls ( $document, $tag, $attributes )

sanitize() 공개 메소드

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

set_image_handler() 공개 메소드

public set_image_handler ( $page = false )

set_output_encoding() 공개 메소드

public set_output_encoding ( $encoding = 'UTF-8' )

set_registry() 공개 메소드

public set_registry ( SimplePie_Registry $registry )
$registry SimplePie_Registry

set_url_replacements() 공개 메소드

Defaults to |a|@href, |area|@href, |blockquote|@cite, |del|@cite, |form|@action, |img|@longdesc, |img|@src, |input|@src, |ins|@cite, |q|@cite
부터: 1.0
public set_url_replacements ( array | null $element_attribute = null )
$element_attribute array | null Element/attribute key/value pairs, null for default

strip_attr() 보호된 메소드

protected strip_attr ( $attrib, $xpath )

strip_attributes() 공개 메소드

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

strip_comments() 공개 메소드

public strip_comments ( $strip = false )

strip_htmltags() 공개 메소드

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

strip_tag() 보호된 메소드

protected strip_tag ( $tag, $document, $xpath, $type )

프로퍼티 상세

$add_attributes 공개적으로 프로퍼티

public $add_attributes

$base 공개적으로 프로퍼티

Private vars
public $base

$cache_location 공개적으로 프로퍼티

public $cache_location

$cache_name_function 공개적으로 프로퍼티

public $cache_name_function

$enable_cache 공개적으로 프로퍼티

public $enable_cache

$encode_instead_of_strip 공개적으로 프로퍼티

public $encode_instead_of_strip

$force_fsockopen 공개적으로 프로퍼티

public $force_fsockopen

$image_handler 공개적으로 프로퍼티

public $image_handler

$output_encoding 공개적으로 프로퍼티

public $output_encoding

$remove_div 공개적으로 프로퍼티

Options
public $remove_div

$replace_url_attributes 공개적으로 프로퍼티

public $replace_url_attributes

$strip_attributes 공개적으로 프로퍼티

public $strip_attributes

$strip_comments 공개적으로 프로퍼티

public $strip_comments

$strip_htmltags 공개적으로 프로퍼티

public $strip_htmltags

$timeout 공개적으로 프로퍼티

public $timeout

$useragent 공개적으로 프로퍼티

public $useragent