← All changes
|
vendor/team-updraft/lib-onboarding-wizard/Wizard/Onboarding/src/utils/html.tsx
+1
-1
4.5.5
→
trunk
View file →
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | import * as DOMPurify from "isomorphic-dompurify"; |
| 2 | 2 | |
| 3 | -const isLikelyHtml = (s: string) => /<[^>]+>/.test(s); | |
| 3 | +export const isLikelyHtml = (s: string) => /<[^>]+>/.test(s); | |
| 4 | 4 | |
| 5 | 5 | const sanitizeHtml = (dirty: string, custom?: (dirty: string) => string) => { |
| 6 | 6 | if (custom) { |
| 7 | 7 | return custom(dirty); |