Robot Framework
robot.libdocpkg.htmlutils.HtmlToText Class Reference

Public Member Functions

def get_shortdoc_from_html (self, doc)
 
def html_to_plain_text (self, doc)
 

Static Public Attributes

dictionary html_chars
 
dictionary html_tags
 

Detailed Description

Definition at line 124 of file htmlutils.py.

Member Function Documentation

◆ get_shortdoc_from_html()

def robot.libdocpkg.htmlutils.HtmlToText.get_shortdoc_from_html (   self,
  doc 
)

Definition at line 142 of file htmlutils.py.

◆ html_to_plain_text()

def robot.libdocpkg.htmlutils.HtmlToText.html_to_plain_text (   self,
  doc 
)

Definition at line 149 of file htmlutils.py.

Member Data Documentation

◆ html_chars

dictionary robot.libdocpkg.htmlutils.HtmlToText.html_chars
static
Initial value:
= {
'<br */?>': '\n',
'&amp;': '&',
'&lt;': '<',
'&gt;': '>',
'&quot;': '"',
'&apos;': "'"
}

Definition at line 133 of file htmlutils.py.

◆ html_tags

dictionary robot.libdocpkg.htmlutils.HtmlToText.html_tags
static
Initial value:
= {
'b': '*',
'i': '_',
'strong': '*',
'em': '_',
'code': '``',
'div.*?': ''
}

Definition at line 125 of file htmlutils.py.


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