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('<', '&lt;')
                .replace('>', '&gt;')
                .replace('"', '&quot;')
                .replace("'", '&#x27;'))

    @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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…