Score:0

Title field returning ' where apostrophe should be?

ph flag

I have a series of fields on a View. For some reason, any node title field with an apostrophe in it is being returned to my endpoint as Jen's Cupcake Store instead of Jenn's Cupcake Store.

Any idea how I can fix this? Been at it for a few days now and I can't seem to find a single solid solution. Help is appreciated!

id flag
The string has been passed through htmlspecialchars, which is what Twig does to escape HTML: ``` php > echo htmlspecialchars("Jenn's Cupcake Store"); Jenn's Cupcake Store ```
Jaypan avatar
de flag
This is done on purpose, otherwise a value returned from an endpoint would have apostrophes, breaking the response. Each programming language should have a function for decoding HTML entities. Decode the value on the receiving end, as its properly encoded for transport.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.