INNER CODE UNIT · Python

validateLink

pybuilder/pybuilder · src/main/python/pybuilder/_vendor/markdown_it/main.py:323

    def validateLink(self, url: str) -> bool:
        """Validate if the URL link is allowed in output.

        This validator can prohibit more than really needed to prevent XSS.
        It's a tradeoff to keep code simple and to be secure by default.

        Note: the url should be normalized at this point, and existing entities decoded.
        """
        return normalize_url.validateLink(url)

    def normalizeLink(self, url: str) -> str:
        """Normalize destination URLs in links

        ::

            [label]:   destination   'title'
                    ^^^^^^^^^^^
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…