Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0a426b5ff3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const whitespace = /\s+/g; | ||
|
|
||
| function stripHtml(value = '') { | ||
| return value.replace(textOnly, ' ').replace(whitespace, ' ').trim(); |
There was a problem hiding this comment.
Decode HTML entities in post text before rendering
stripHtml currently strips tags but does not decode HTML entities, while WordPress title.rendered and excerpt.rendered often include encoded characters (for example ’ and &). In those cases the UI will display literal entity codes in cards/metadata instead of readable text, which is a user-visible content regression whenever encoded punctuation appears. Decode entities after tag stripping before assigning title and excerpt.
Useful? React with 👍 / 👎.
Resumo
Implementa a solução headless do blog Apiki Dev com React e Next.js, consumindo a API pública do WordPress.
O que foi feito
Carregar mais...sluglibpara API, normalização e SEOEstrutura
src/app: rotas e layout globalsrc/components: blocos visuais reutilizáveissrc/lib: integração com API e normalizaçãosrc/styles: estilos globais, por página e por componenteComo validar
npm installnpm run devCarregar mais...Observações