Skip to content

Commit

Permalink
fix: added export for sanitize (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
makhnatkin authored Feb 28, 2025
1 parent 52ec0bc commit f811b51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transform/sanitize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ function sanitizeStyles(html: string, options: SanitizeOptions) {
return styles + content;
}

export default function sanitize(
export function sanitize(
html: string,
options?: SanitizeOptions,
additionalOptions?: SanitizeOptions,
Expand All @@ -622,3 +622,5 @@ export default function sanitize(

return sanitizeHtml(modifiedHtml, sanitizeOptions);
}

export default sanitize;

0 comments on commit f811b51

Please sign in to comment.