Closed bgidley closed 4 years ago
@bgidley make sure you've updated your theme to at least v1.4.1. I fixed this specific issue with JSON-LD in 85abd20ba7bea1c49a16fe5f8f8481afb581641e. I just tested by modifying my own blog's title to add an apostrophe and it is no longer escaped.
The schema.org script does not handle special characters in the blog title. For example my blog is called Gidley's Gossipings and it exports
The Google crawler does not accept the \x27 escape sequence in the title and refusing to spider the page.
The JSON spec (https://www.json.org/json-en.html) does not support \x as an escape character.
This may be an issue in Hugo itself - there doesn't seem to be a way to control the escaping logic.