add_text method

add_text

Adds plain text to the html files, replacing special characters with html entities. Linebreaks and whitespaces aren’t replaced.

def add_text(self, text):
    ...
ParameterTypeDescription
textstrText to add.

add_text

Adds plain text to the html files, replacing special characters with html entities. Linebreaks and whitespaces aren’t replaced.

def add_text(self, text):
    ...
ParameterTypeDescription
textList[char]Text to add.

add_text

Adds plain text to the html files, replacing special characters with html entities. Linebreaks and whitespaces aren’t replaced.

def add_text(self, text, start_index, length):
    ...
ParameterTypeDescription
textList[char]Text to add.
start_indexintStart index of the portion to add.
lengthintLength of the portion to add.

See Also