20211215 - 'Tag嵌套:`p` 不能在 `div` 里面,`div` 也不能在 `p` 里面'
因为desc中的内容被解析为html之后,有些会出现<p>
标签

Solution (temporary)
1 2 3
| <Typography variant='body2' component='h6'> {ReactHtmlParser(selectedPod.description)} </Typography>
|
- 实际dom中为h6,变体为p
- Typography默认的component是div。
p 标签里面不能嵌套 div 标签 - 掘金