True when a link destination has a scheme that is not in SAFE_LINK_SCHEMES, after the tricks a browser (or a Markdown renderer) undoes: HTML entities (javascript:), percent-escapes, invisible and control characters, letter case.

Methods

link_destination_is_unsafe(destination: str) -> bool

True when a link destination has a scheme that is not in SAFE_LINK_SCHEMES, after the tricks a browser (or a Markdown renderer) undoes: HTML entities (javascript:), percent-escapes, invisible and control characters, letter case.

ParameterTypeDescription
destinationstr

Generated with Flude

Copyright © 2026