Decode HTML Entities by default #50
Labels
status: confirmed 📍
The issue has been confirmed and reproduced.
type: enhancement ⚡
Improves on an existing feature
workaround provided 🩹
A temporary workaround has been provided.
Milestone
What problem does this address?
When getting the values from the GraphQL, the titles and descriptions with HTML entities (such as – and &) are rendered as
–
and&
respectively.I think the plugin should display them ready-to-use by the frontend instead of the backend or frontend decoding them.
What is your proposed solution?
The obvious solution would be to decode them when passing them to the GraphQL.
What alternatives have you considered?
An alternative, is to do the decoding myself with RankMath's filters. For example, to decode the SEO title you can simply add these lines of code:
Nonetheless, I would still prefer that the plugin did this by default.
Let me know if you disagree and why 🙂
Additional Context
No response
The text was updated successfully, but these errors were encountered: