Spaces:
Running
Running
Fix HTML parsing in product descriptions
Browse filesUse dangerouslySetInnerHTML to properly render HTML tags like <strong>
in product descriptions.
- 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 |
-
|
| 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 }}>
|