INNER CODE UNIT · Python
_html_escape
infobyte/emploleaks · emploleaks.py:1180
def _html_escape(text):
"""Escape HTML special characters."""
if not text:
return ''
return (str(text)
.replace('&', '&')
.replace('<', '<')
.replace('>', '>')
.replace('"', '"')
.replace("'", '''))
@cmd2.with_argparser(parser_print)
@company_selected
def do_print(self, args):
"""Display or export collected OSINT data for the selected company.
Examples:
print --data all Show all collected data