feat: RichText component for safe PocketBase HTML rendering

Add html-react-parser-backed RichText component that converts HTML
strings from PocketBase rich-text fields into React elements without
dangerouslySetInnerHTML. Replace raw <p> render in IntroSection and
BioSection, and drop the invalid slug filters those collections lacked.
This commit is contained in:
Ilia Mashkov
2026-05-12 13:58:17 +03:00
parent 0a99a37bca
commit 301e7a2555
8 changed files with 201 additions and 17 deletions
+1
View File
@@ -20,6 +20,7 @@
},
"dependencies": {
"clsx": "^2.1.1",
"html-react-parser": "^6.1.0",
"next": "16.2.4",
"react": "19.2.4",
"react-dom": "19.2.4",