How to deal with HTML entities in page titles?
See original GitHub issueMy page titles are coming from Wordpress and some contain HTML entities (like –
).
How can I convert this inside NextSEO config? Normally I would use dangerouslySetInnerHtml, but I don’t think that syntax would work inside the config.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
é HTML Entity code in title tags - Stack Overflow
I'm trying to use the HTML entity code for 'é' in the title tags of my site, and it doesn't seem to be...
Read more >The Document Title element - HTML - MDN Web Docs - Mozilla
The <title> HTML element defines the document's title that is shown in a browser's title bar or a page's tab. It only contains...
Read more >Document How to Handle/Return HTML Entities in Title ...
Document How to Handle/Return HTML Entities in Title Callbacks · Problem/Motivation · Proposed resolution · Remaining tasks · User interface changes.
Read more >HTML Entities - W3Schools
HTML Entities ... Reserved characters in HTML must be replaced with character entities. HTML Entities. Some characters are reserved in HTML. If you...
Read more >Dealing with HTML Entities - WordPress.org
When I add a test post into my local dev install, using an ampersand character in the title, I do not experience that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @geochanto, I would say what you could do is call a function for the title that returns the html. Haven’t tried it but should work. It might look something like:
I need a solution for thi one too. any news?