Skip to content

Commit f2bb398

Browse files
committed
Add comment
1 parent 8be0df7 commit f2bb398

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/component/src/hooks/internal/useSanitizeHrefCallback.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ type LinkInfo = {
88
};
99

1010
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.
1113
const transformHTMLContent = useTransformHTMLContent();
1214

1315
return useCallback(

0 commit comments

Comments
 (0)