tfrere HF Staff commited on
Commit
1f12866
·
1 Parent(s): c7490a8

Fix HTML parsing in product descriptions

Browse files

Use dangerouslySetInnerHTML to properly render HTML tags like <strong>
in product descriptions.

Files changed (1) hide show
  1. src/pages/Buy.jsx +2 -3
src/pages/Buy.jsx CHANGED
@@ -331,9 +331,8 @@ function ProductCardsSection() {
331
  variant="body2"
332
  color="text.secondary"
333
  sx={{ mb: 3, lineHeight: 1.6, flex: 1 }}
334
- >
335
- {product.description}
336
- </Typography>
337
 
338
  {/* Key highlights */}
339
  <Stack spacing={1} sx={{ mb: 3 }}>
 
331
  variant="body2"
332
  color="text.secondary"
333
  sx={{ mb: 3, lineHeight: 1.6, flex: 1 }}
334
+ dangerouslySetInnerHTML={{ __html: product.description }}
335
+ />
 
336
 
337
  {/* Key highlights */}
338
  <Stack spacing={1} sx={{ mb: 3 }}>