INNER CODE UNIT · Python

link

neuml/tldrstory · src/python/tldrstory/app.py:167

    def link(url, name):
        """
        Renders a hyperlink.

        Args:
            url: url
            name: text to show

        Returns:
            hyperlink text
        """

        return '<a href="{}" rel="noopener noreferrer" target="_blank">{}</a>'.format(url, name)

    @staticmethod
    def style(config, value):
        """
        Renders a style span.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…