Răsfoiți Sursa

Merge pull request #27831 from overleaf/msm-fix-sp-footer

[web] Fix CE/SP footer rendering

GitOrigin-RevId: 600ee50798c6b727dec2011198c4e55dc73455a5
Mathias Jakobsen 1 an în urmă
părinte
comite
afccedbfa3

+ 2 - 2
services/web/frontend/js/shared/components/footer/thin-footer.tsx

@@ -16,7 +16,7 @@ function FooterItemLi({
   const textToDisplay = translatedText || text
 
   if (!href) {
-    return <li>{textToDisplay}</li>
+    return <li dangerouslySetInnerHTML={{ __html: textToDisplay }} />
   }
 
   const linkProps = {
@@ -27,7 +27,7 @@ function FooterItemLi({
 
   return (
     <li>
-      <a {...linkProps} dangerouslySetInnerHTML={{ __html: textToDisplay }} />
+      <a {...linkProps}>{textToDisplay}</a>
     </li>
   )
 }