Public Member Functions | Public Attributes
webui.xss.XssCleaner Class Reference
Inheritance diagram for webui.xss.XssCleaner:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def handle_charref
def handle_comment
def handle_data
def handle_endtag
def handle_entityref
def handle_starttag
def strip
def unknown_endtag
def unknown_starttag
def url_is_acceptable
def xtags

Public Attributes

 allowed_attributes
 allowed_attributes_here
 allowed_schemes
 open_tags
 permitted_tags
 requires_no_close
 result

Detailed Description

Definition at line 12 of file xss.py.


Constructor & Destructor Documentation

def webui.xss.XssCleaner.__init__ (   self,
  fmt = AbstractFormatter 
)

Definition at line 13 of file xss.py.


Member Function Documentation

def webui.xss.XssCleaner.handle_charref (   self,
  ref 
)

Definition at line 41 of file xss.py.

def webui.xss.XssCleaner.handle_comment (   self,
  comment 
)

Definition at line 51 of file xss.py.

def webui.xss.XssCleaner.handle_data (   self,
  data 
)

Definition at line 38 of file xss.py.

def webui.xss.XssCleaner.handle_endtag (   self,
  tag,
  attrs 
)

Definition at line 80 of file xss.py.

def webui.xss.XssCleaner.handle_entityref (   self,
  ref 
)

Definition at line 46 of file xss.py.

def webui.xss.XssCleaner.handle_starttag (   self,
  tag,
  method,
  attrs 
)

Definition at line 55 of file xss.py.

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 
)

Definition at line 90 of file xss.py.

def webui.xss.XssCleaner.unknown_starttag (   self,
  tag,
  attributes 
)

Definition at line 88 of file xss.py.

def webui.xss.XssCleaner.url_is_acceptable (   self,
  url 
)

Definition at line 92 of file xss.py.

Returns a printable string informing the user which tags are allowed

Definition at line 104 of file xss.py.


Member Data Documentation

Definition at line 13 of file xss.py.

Definition at line 55 of file xss.py.

Definition at line 13 of file xss.py.

Definition at line 13 of file xss.py.

Definition at line 13 of file xss.py.

Definition at line 13 of file xss.py.

Definition at line 13 of file xss.py.


The documentation for this class was generated from the following file:


webui
Author(s): Scott Hassan/hassan@willowgarage.com
autogenerated on Sat Dec 28 2013 17:47:58