question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Frontity shows `&` when ampersand is used in a title

See original GitHub issue

Bug report

Describe the expected behavior

If I use an ampersand in one category of my WordPress, it should display the character & instead of &.

Describe the observed behavior

Frontity is displaying & in both twentytwenty-theme and mars-theme for the category Business & Marketing.

twentytwenty-theme Screen Shot 2020-01-17 at 08 23 21

mars-theme Screenshot from 2020-01-17 10-51-50

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
michalczaplinskicommented, Jan 31, 2020

Unfortunately, it’s not. The REST API doesn’t have any options. ok, that sucks 😅

In that case I ll change the wp-source to unescape in every field that is not a .rendered. It’s technically double work, but seems like the only solution.

0reactions
luisherranzcommented, Feb 4, 2020

Yeah… I don’t think this should be done at the state manager level, but either in the theme with a decode function exposed by frontity or automatically by wp-source.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AMP package - Currently in Development
In order to go through all the urls of test.frontity.org, I create a new json file at the root of the project, sitemap.json...
Read more >
Ampersand Symbol (&) turning into & - Stack Overflow
This is fine when it's processed by the browser, as it will understand the & as an ampersand. However, in the context of...
Read more >
including an ampersand (&) in the site title - WordPress.com
Does anyone know, please, if I will have problems if I include an ampersand (&) in the site title of my site/blog?
Read more >
Analyzing the Ampersand. When to use “and” versus “&” in UX…
The ampersand should always be used when it's part of a company name, logo, proper noun, or title. This is one of the...
Read more >
Sitemap - Programar Plus
24: Creación de plantillas con subrayado | Programar Plus · # 26: use complementos de jQuery ... Desde WordPress hasta Apple News, lectura...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found