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

Public Member Functions

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)
 

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.

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.

Member Data Documentation

webui.xss.XssCleaner.allowed_attributes

Definition at line 30 of file xss.py.

webui.xss.XssCleaner.allowed_attributes_here

Definition at line 62 of file xss.py.

webui.xss.XssCleaner.allowed_schemes

Definition at line 37 of file xss.py.

webui.xss.XssCleaner.open_tags

Definition at line 16 of file xss.py.

webui.xss.XssCleaner.permitted_tags

Definition at line 20 of file xss.py.

webui.xss.XssCleaner.requires_no_close

Definition at line 24 of file xss.py.

webui.xss.XssCleaner.result

Definition at line 15 of file xss.py.


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


webui
Author(s): Scott Hassan
autogenerated on Mon Jun 10 2019 15:51:24