Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Used for data cleanup and post-processing. More...
Public Member Functions | |
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) | |
https_url ($url) | |
Force HTTPS for selected Web sites. | |
pass_cache_data ($enable_cache=true, $cache_location='./cache', $cache_name_function='md5', $cache_class='SimplePie\Cache', DataCache $cache=null) | |
pass_file_data ($file_class='SimplePie\File', $timeout=10, $useragent='', $force_fsockopen=false) | |
remove_div ($enable=true) | |
rename_attributes ($attribs=[]) | |
replace_urls ($document, $tag, $attributes) | |
sanitize ($data, $type, $base='') | |
set_https_domains ($domains) | |
Set the list of domains for which to force HTTPS. | |
set_image_handler ($page=false) | |
set_output_encoding ($encoding='UTF-8') | |
set_registry (Registry $registry) | |
Set the Registry into the class. | |
set_registry (\SimplePie\Registry $registry) | |
set_url_replacements ($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']) | |
Public Attributes | |
$add_attributes = ['audio' => ['preload' => 'none'], 'iframe' => ['sandbox' => 'allow-scripts allow-same-origin'], 'video' => ['preload' => 'none']] | |
$base | |
$cache_location = './cache' | |
$cache_name_function = 'md5' | |
$enable_cache = true | |
$encode_instead_of_strip = false | |
$force_fsockopen = false | |
$https_domains = [] | |
List of domains for which to force HTTPS. | |
$image_handler = '' | |
$output_encoding = 'UTF-8' | |
$registry | |
$remove_div = true | |
$rename_attributes = [] | |
$replace_url_attributes = null | |
$strip_attributes = ['bgsound', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc'] | |
$strip_comments = false | |
$strip_htmltags = ['base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style'] | |
$timeout = 10 | |
$useragent = '' | |
Used for data cleanup and post-processing.
This class can be overloaded with {
Sanitize::set_https_domains | ( | $domains | ) |
Set the list of domains for which to force HTTPS.
|
inherited |
Sanitize::set_url_replacements | ( | $element_attribute = null | ) |
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, |audio|@src, |blockquote|
Sanitize::$https_domains = [] |
List of domains for which to force HTTPS.