Package pyx12 :: Module error_html
[hide private]

Module error_html

source code

Generates HTML error output

Classes [hide private]
  error_html
Functions [hide private]
string
seg_str(seg, seg_term, ele_term, subele_term, eol='')
Join a list of elements
source code
string
escape_html_chars(str_val)
Escape special HTML characters (& <>)
source code
Variables [hide private]
  logger = logging.getLogger('pyx12.error_html')
Function Details [hide private]

seg_str(seg, seg_term, ele_term, subele_term, eol='')

source code 

Join a list of elements

Parameters:
  • seg (list[string|list[string]]) - List of elements
  • seg_term (string) - Segment terminator character
  • ele_term (string) - Element terminator character
  • subele_term (string) - Sub-element terminator character
  • eol (string) - End of line character
Returns: string
formatted segment

escape_html_chars(str_val)

source code 

Escape special HTML characters (& <>)

Parameters:
  • str_val (string)
Returns: string
formatted string