We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8be0df7 commit f2bb398Copy full SHA for f2bb398
1 file changed
packages/component/src/hooks/internal/useSanitizeHrefCallback.ts
@@ -8,6 +8,8 @@ type LinkInfo = {
8
};
9
10
export default function useSanitizeHrefCallback(): (href: string) => LinkInfo {
11
+ // Although clumsy, we are using HTML content transformer for sanitizing links.
12
+ // This make sure we have a single centralized facility for sanitization.
13
const transformHTMLContent = useTransformHTMLContent();
14
15
return useCallback(
0 commit comments