|
def | __init__ (self, fmt=AbstractFormatter) |
|
def | handle_charref (self, ref) |
|
def | handle_comment (self, comment) |
|
def | handle_data (self, data) |
|
def | handle_endtag (self, tag, attrs) |
|
def | handle_entityref (self, ref) |
|
def | handle_starttag (self, tag, method, attrs) |
|
def | strip (self, rawstring) |
|
def | unknown_endtag (self, tag) |
|
def | unknown_starttag (self, tag, attributes) |
|
def | url_is_acceptable (self, url) |
|
def | xtags (self) |
|
Definition at line 12 of file xss.py.
def webui.xss.XssCleaner.__init__ |
( |
|
self, |
|
|
|
fmt = AbstractFormatter |
|
) |
| |
def webui.xss.XssCleaner.handle_charref |
( |
|
self, |
|
|
|
ref |
|
) |
| |
def webui.xss.XssCleaner.handle_comment |
( |
|
self, |
|
|
|
comment |
|
) |
| |
def webui.xss.XssCleaner.handle_data |
( |
|
self, |
|
|
|
data |
|
) |
| |
def webui.xss.XssCleaner.handle_endtag |
( |
|
self, |
|
|
|
tag, |
|
|
|
attrs |
|
) |
| |
def webui.xss.XssCleaner.handle_entityref |
( |
|
self, |
|
|
|
ref |
|
) |
| |
def webui.xss.XssCleaner.handle_starttag |
( |
|
self, |
|
|
|
tag, |
|
|
|
method, |
|
|
|
attrs |
|
) |
| |
def webui.xss.XssCleaner.strip |
( |
|
self, |
|
|
|
rawstring |
|
) |
| |
Returns the argument stripped of potentially harmful HTML or Javascript code
Definition at line 96 of file xss.py.
def webui.xss.XssCleaner.unknown_endtag |
( |
|
self, |
|
|
|
tag |
|
) |
| |
def webui.xss.XssCleaner.unknown_starttag |
( |
|
self, |
|
|
|
tag, |
|
|
|
attributes |
|
) |
| |
def webui.xss.XssCleaner.url_is_acceptable |
( |
|
self, |
|
|
|
url |
|
) |
| |
def webui.xss.XssCleaner.xtags |
( |
|
self | ) |
|
Returns a printable string informing the user which tags are allowed
Definition at line 104 of file xss.py.
webui.xss.XssCleaner.allowed_attributes |
webui.xss.XssCleaner.allowed_attributes_here |
webui.xss.XssCleaner.allowed_schemes |
webui.xss.XssCleaner.open_tags |
webui.xss.XssCleaner.permitted_tags |
webui.xss.XssCleaner.requires_no_close |
webui.xss.XssCleaner.result |
The documentation for this class was generated from the following file: