(self, tokens)
return [
            [
                _html.escape(t.text).replace("\n", "<br/>"),
                _html.escape(t.whitespace_).replace("\n", "<br/>")
            ]

            for t in tokens
        ]
Carefully process tokens to handle whitespace and HTML characters.
def _htmltokens(self, tokens):

        """

        Carefully process tokens to handle whitespace and HTML characters.

        """

        return [
            [
                _html.escape(t.text).replace("\n", "<br/>"),
                _html.escape(t.whitespace_).replace("\n", "<br/>")
            ]

            for t in tokens
        ]
def _htmltokens ( self , tokens ) : return [ [ _html . escape ( t . text ) . replace ( "\n" , "<br/>" ) , _html . escape ( t . whitespace_ ) . replace ( "\n" , "<br/>" ) ] for t in tokens ]