Skip to content

Conversation

@Soare-Robert-Daniel
Copy link
Contributor

Summary

Sometimes the title might contain encoded entities like A Skeptic's "Ghost" Story – Half-Hearted Fanatic which they should be shared like A Skeptic's "Ghost" Story – Half-Hearted Fanatic.

After pulling the title, I added a decoding function.

post_title before: A Skeptic’s "Ghost" Story – Half-Hearted Fanatic
post_title after: A Skeptic’s "Ghost" Story – Half-Hearted Fanatic

Testing

Note

To ensure you add the encoded entities, create a post using the Classic Plugin. With Gutenberg, it will make the decode automatically.

image

  1. Create a Post
  2. Add the following string as a title A Skeptic's "Ghost" Story – Half-Hearted Fanatic
  3. Share it with a social account.
  4. The title should be displayed correctly.

@Soare-Robert-Daniel Soare-Robert-Daniel self-assigned this Mar 18, 2024
@Soare-Robert-Daniel Soare-Robert-Daniel linked an issue Mar 18, 2024 that may be closed by this pull request
@Soare-Robert-Daniel Soare-Robert-Daniel marked this pull request as ready for review March 18, 2024 11:08
@github-actions
Copy link

Plugin build for cbfd530 is ready 🛎️!

@irinelenache
Copy link

@Soare-Robert-Daniel Tested and the issue is fixed now, thank you ✔️

@Soare-Robert-Daniel Soare-Robert-Daniel merged commit a28c21d into development Mar 29, 2024
@Soare-Robert-Daniel Soare-Robert-Daniel deleted the fix/title-encoded-entities branch March 29, 2024 10:40
@pirate-bot
Copy link
Contributor

🎉 This PR is included in version 9.0.27 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Indicate that an issue has been resolved and released in a particular version of the product.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTML unstripped characters visible in the shared post

5 participants