class documentation

class HtmlStash: (source)

View In Hierarchy

This class is used for stashing HTML objects that we extract in the beginning and replace with place-holders.

Method __init__ Create a HtmlStash.
Method get_placeholder Undocumented
Method reset Undocumented
Method store Saves an HTML segment for later reinsertion. Returns a placeholder string that needs to be inserted into the document.
Method store_tag Store tag data and return a placeholder.
Instance Variable html_counter Undocumented
Instance Variable rawHtmlBlocks Undocumented
Instance Variable tag_counter Undocumented
Instance Variable tag_data Undocumented
def __init__(self): (source)

Create a HtmlStash.

def get_placeholder(self, key): (source)

Undocumented

def reset(self): (source)

Undocumented

def store(self, html): (source)

Saves an HTML segment for later reinsertion. Returns a placeholder string that needs to be inserted into the document. Keyword arguments: * html: an html segment Returns : a placeholder string

def store_tag(self, tag, attrs, left_index, right_index): (source)

Store tag data and return a placeholder.

html_counter: int = (source)

Undocumented

rawHtmlBlocks: list = (source)

Undocumented

tag_counter: int = (source)

Undocumented

tag_data: list = (source)

Undocumented