diff --git a/components/design-system/CTA.jsx b/components/design-system/CTA.jsx index ed94ccc6d8..e5f2a851a9 100644 --- a/components/design-system/CTA.jsx +++ b/components/design-system/CTA.jsx @@ -9,6 +9,9 @@ export function CTA({ LinkProps, containerClass = "", }) { + // Check if body prop is HTML content + const isHTML = (str) => /<\/?[a-z][\s\S]*>/i.test(str); + return (
@@ -23,7 +26,7 @@ export function CTA({

{heading}

-

{body}

+ {isHTML(body) ? body :

{body}

}