Class: HTML_Safe
Source Location: /HTML_Safe-0.10.1/HTML/Safe.php
HTML_Safe Parser
Author(s):
Version:
- Release: @package_version@
Copyright:
- 2004-2009 Roman Ivanov, Miguel Vazquez Gocobachi
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
$allowTags = array()
[line 127]
Allowed tags
$attributes = array('dynsrc', 'id', 'name', )
[line 255]
List of dangerous attributes
$attributesNS = array('xml:lang', )
[line 262]
List of allowed "namespaced" attributes
$blackProtocols = array(
'about', 'chrome', 'data', 'disk', 'hcp',
'help', 'javascript', 'livescript', 'lynxcgi', 'lynxexec',
'ms-help', 'ms-its', 'mhtml', 'mocha', 'opera',
'res', 'resource', 'shell', 'vbscript', 'view-source',
'vnd.ms.radio', 'wysiwyg',
)
[line 169]
List of "dangerous" protocols (used for blacklist-filtering)
$closeParagraph = array(
'address', 'blockquote', 'center', 'dd', 'dir', 'div',
'dl', 'dt', 'h1', 'h2', 'h3', 'h4',
'h5', 'h6', 'hr', 'isindex', 'listing', 'marquee',
'menu', 'multicol', 'ol', 'p', 'plaintext', 'pre',
'table', 'ul', 'xmp',
)
[line 225]
List of block-level tags that terminates paragraph Paragraph will be closed when this tags opened
$counter = array()
[line 71]
Array of counters for each tag
$cssKeywords = array(
'absolute', 'behavior', 'behaviour', 'content', 'expression',
'fixed', 'include-source', 'moz-binding',
)
[line 205]
List of dangerous CSS keywords Whole style="" attribute will be removed, if parser will find one of these keywords
$cssRegexps = array()
[line 120]
Array of prepared regular expressions for CSS matching
$dcCounter = array()
[line 85]
Array of counters for tags that must be deleted with all content
$dcStack = array()
[line 92]
Stack of unclosed tags that must be deleted with all content
$deleteTags = array(
'applet', 'base', 'basefont', 'bgsound', 'blink', 'body',
'embed', 'frame', 'frameset', 'head', 'html', 'ilayer',
'iframe', 'layer', 'link', 'meta', 'object', 'style',
'title', 'script',
)
[line 142]
List of dangerous tags (such tags will be deleted)
$deleteTagsContent = array('script', 'style', 'title', 'xml', )
[line 155]
List of dangerous tags (such tags will be deleted, and all content inside this tags will be also removed)
$liStack = array()
[line 106]
Stack of unclosed list tags
$listScope = 0
[line 99]
Stores level of list (ol/ul) nesting
$listTags = array('dir', 'menu', 'ol', 'ul', 'dl', )
[line 248]
List of list tags
$noClose = array()
[line 216]
List of tags that can have no "closing tag"
$protocolAttributes = array(
'action', 'background', 'codebase', 'dynsrc', 'href', 'lowsrc', 'src',
)
[line 193]
List of attributes that can contain protocols
$protocolFiltering = 'white'
[line 162]
Type of protocols filtering ('white' or 'black')
$protoRegexps = array()
[line 113]
Array of prepared regular expressions for protocols (schemas) matching
$singleTags = array('area', 'br', 'img', 'input', 'hr', 'wbr', )
[line 135]
List of single tags ("<tag />")
$stack = array()
[line 78]
Stack of unclosed tags
$tableTags = array(
'caption', 'col', 'colgroup', 'tbody', 'td', 'tfoot', 'th',
'thead', 'tr',
)
[line 238]
List of table tags, all table tags outside a table will be removed
$whiteProtocols = array(
'ed2k', 'file', 'ftp', 'gopher', 'http', 'https',
'irc', 'mailto', 'news', 'nntp', 'telnet', 'webcal',
'xmpp', 'callto',
)
[line 182]
List of "safe" protocols (used for whitelist-filtering)
$xhtml = ''
[line 64]
Storage for resulting HTML output
Method Detail
Documentation generated on Mon, 11 Mar 2019 15:38:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|